From: Sami Kerola Date: Sun, 25 Sep 2011 20:49:52 +0000 (+0200) Subject: cytune: fix printf type warning X-Git-Tag: v2.21-rc1~356^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a26acddbb797ef6fbe87c95f7e36276a3bf55278;p=thirdparty%2Futil-linux.git cytune: fix printf type warning conversion specifies type 'unsigned long' but the argument has type 'unsigned long *' Signed-off-by: Sami Kerola --- diff --git a/sys-utils/cytune.c b/sys-utils/cytune.c index 4985b147b4..8876fb3f66 100644 --- a/sys-utils/cytune.c +++ b/sys-utils/cytune.c @@ -246,8 +246,8 @@ void query_tty_stats(int argc, char **argv, int interval, int numfiles, printf(_("%s: %lu ints, %lu/%lu chars; fifo: %lu thresh, %lu tmout, " "%lu max, %lu now\n"), argv[i], cywork.int_count, cywork.char_count, - cywork.send_count, threshold_value, - timeout_value, cywork.char_max, + cywork.send_count, *threshold_value, + *timeout_value, cywork.char_max, cywork.char_last); printf(_(" %f int/sec; %f rec, %f send (char/sec)\n"), cywork.int_count / diff, xfer_rate, xmit_rate); @@ -255,7 +255,7 @@ void query_tty_stats(int argc, char **argv, int interval, int numfiles, printf(_("%s: %lu ints, %lu chars; fifo: %lu thresh, %lu tmout, " "%lu max, %lu now\n"), argv[i], cywork.int_count, cywork.char_count, - threshold_value, timeout_value, cywork.char_max, + *threshold_value, *timeout_value, cywork.char_max, cywork.char_last); printf(_(" %f int/sec; %f rec (char/sec)\n"), cywork.int_count / diff, xfer_rate);