Fix another couple of warnings, but not sure what to do about the rest:

tap-iostat.c: In function ‘iostat_draw’:
tap-iostat.c:542:5: error: implicit declaration of function ‘itoa’
tap-iostat.c:756:9: error: too few arguments for format
tap-iostat.c:756:9: error: too few arguments for format

itoa() could be converted into a g_snprintf(), but the buffer used is only
one character long.  Is that right?

For the printf() format one, I'm not sure what was intended.


svn path=/trunk/; revision=41234
This commit is contained in:
Martin Mathieson 2012-02-29 10:25:44 +00:00
parent 86f0a7b80c
commit e7bd26af04
1 changed files with 2 additions and 2 deletions

View File

@ -852,7 +852,7 @@ iostat_draw(void *arg)
printcenter (calc_type_table[type].func_name, col_w[j].val, numpad);
}
}
if (filler_s > 0)
if (filler_s != 0)
printf("%s|", filler_s);
printf("\n|-");
@ -986,7 +986,7 @@ iostat_draw(void *arg)
printf(fmt, (guint64)0);
}
}
if (filler_s > 0)
if (filler_s != 0)
printf("%s|", filler_s);
printf("\n");
t += interval;