summaryrefslogtreecommitdiffstats
path: root/login-utils/utmpdump.c
diff options
context:
space:
mode:
authorKarel Zak2012-07-26 09:46:49 +0200
committerKarel Zak2012-07-26 09:46:49 +0200
commit48f2fdbf8923080c13a6b2c18b702ff3e011f611 (patch)
tree042be6c73a026f2d4160eacac0e8b87c03dba0c6 /login-utils/utmpdump.c
parentlibmount: fix compiler warning [-Wsign-compare] (diff)
downloadkernel-qcow2-util-linux-48f2fdbf8923080c13a6b2c18b702ff3e011f611.tar.gz
kernel-qcow2-util-linux-48f2fdbf8923080c13a6b2c18b702ff3e011f611.tar.xz
kernel-qcow2-util-linux-48f2fdbf8923080c13a6b2c18b702ff3e011f611.zip
utmpdump: fix compiler warning [-Wunused-result]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils/utmpdump.c')
-rw-r--r--login-utils/utmpdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/login-utils/utmpdump.c b/login-utils/utmpdump.c
index cb850af13..b015e1b5d 100644
--- a/login-utils/utmpdump.c
+++ b/login-utils/utmpdump.c
@@ -270,7 +270,7 @@ static void undump(FILE *fp)
ut.ut_addr = inet_addr(s_addr);
ut.ut_time = strtotime(s_time);
- fwrite(&ut, sizeof(ut), 1, stdout);
+ ignore_result( fwrite(&ut, sizeof(ut), 1, stdout) );
++count;
}