]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
utmpdump: make analyzers happy
authorKarel Zak <kzak@redhat.com>
Tue, 1 Oct 2013 15:11:25 +0000 (17:11 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 1 Oct 2013 15:11:25 +0000 (17:11 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/utmpdump.c

index 4451363fbc50faf1986de32749a1fbc6baa06dc9..7611c9f0ac3ca52de8b9fae0ddb2f1ee6b616ed2 100644 (file)
@@ -199,7 +199,7 @@ static FILE *dump(FILE *in, const char *filename, int follow, FILE *out)
        struct utmp ut;
 
        if (follow)
-               fseek(in, -10 * sizeof(ut), SEEK_END);
+               ignore_result( fseek(in, -10 * sizeof(ut), SEEK_END) );
 
        while (fread(&ut, sizeof(ut), 1, in) == 1)
                print_utline(ut, out);