Remove compiler warning :
warning: suggest explicit braces to avoid ambiguous ‘else’pull/7/head
parent
62c030b21f
commit
5655d53acb
|
|
@ -150,11 +150,12 @@ void printstats(int signo)
|
|||
|
||||
for (i=0; i<currmax; i++) {
|
||||
|
||||
if (color)
|
||||
if (color) {
|
||||
if (i%2)
|
||||
printf("%s", FGRED);
|
||||
else
|
||||
printf("%s", FGBLUE);
|
||||
}
|
||||
|
||||
if (stat[i].bitrate)
|
||||
percent = (stat[i].recv_bits_total*100)/stat[i].bitrate;
|
||||
|
|
|
|||
|
|
@ -310,11 +310,12 @@ int main(int argc, char **argv)
|
|||
loops = 1;
|
||||
}
|
||||
|
||||
if (verbose > 1) /* use -v -v to see this */
|
||||
if (verbose > 1) { /* use -v -v to see this */
|
||||
if (infinite_loops)
|
||||
printf("infinite_loops\n");
|
||||
else
|
||||
printf("%d loops\n", loops);
|
||||
}
|
||||
|
||||
sleep_ts.tv_sec = gap / 1000;
|
||||
sleep_ts.tv_nsec = (gap % 1000) * 1000000;
|
||||
|
|
|
|||
Loading…
Reference in New Issue