diff options
author | Karel Zak | 2007-10-03 23:15:03 +0200 |
---|---|---|
committer | Karel Zak | 2007-10-11 13:19:55 +0200 |
commit | 642035150ec8fcb76244cf8475c5efdc7541760d (patch) | |
tree | 0a40ff376bc9cf04f6556c42454a2f39c9422951 /getopt/getopt-test.bash | |
parent | losetup: clean up gcc warnings (diff) | |
download | kernel-qcow2-util-linux-642035150ec8fcb76244cf8475c5efdc7541760d.tar.gz kernel-qcow2-util-linux-642035150ec8fcb76244cf8475c5efdc7541760d.tar.xz kernel-qcow2-util-linux-642035150ec8fcb76244cf8475c5efdc7541760d.zip |
tailf: clean up gcc warnings & fix use of errno
Fix strict gcc warnings in tailf that come from using:
("-Wall -Wp,-D_FORTIFY_SOURCE=2")
tailf.c:111: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
Also, tailf uses perror() for error reporting, but it inserts
an fprintf call first, so perror() is actually reporting the
result of the fprintf() call, not the failing call; change
the code to print the message by using strerror() instead.
Builds cleanly on x86_32 and x86_64.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'getopt/getopt-test.bash')
0 files changed, 0 insertions, 0 deletions