Remove compiler warning :

warning: suggest explicit braces to avoid ambiguous ‘else’
This commit is contained in:
Oliver Hartkopp
2010-05-14 12:50:17 +00:00
parent 62c030b21f
commit 5655d53acb
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -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;