diff options
author | Jim Meyering <jim@meyering.net> | 2003-07-09 08:54:24 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-07-09 08:54:24 +0000 |
commit | 83ca2782f95235d5e44278a684358eb3825d958c (patch) | |
tree | 3df7ddc626afcc10cdb4c970b0606072954845de /src | |
parent | 0a2917372dd50db873be9861eefaa4ae8fc6673d (diff) | |
download | coreutils-83ca2782f95235d5e44278a684358eb3825d958c.tar.xz |
(xlseek): Avoid warning about ``return without value
from function returning non-void''.
Diffstat (limited to 'src')
-rw-r--r-- | src/tail.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tail.c b/src/tail.c index 1c76ef67e..b923085d1 100644 --- a/src/tail.c +++ b/src/tail.c @@ -390,21 +390,22 @@ xlseek (int fd, off_t offset, int whence, char const *filename) switch (whence) { case SEEK_SET: - error (EXIT_FAILURE, errno, _("%s: cannot seek to offset %s"), + error (0, errno, _("%s: cannot seek to offset %s"), filename, s); break; case SEEK_CUR: - error (EXIT_FAILURE, errno, _("%s: cannot seek to relative offset %s"), + error (0, errno, _("%s: cannot seek to relative offset %s"), filename, s); break; case SEEK_END: - error (EXIT_FAILURE, errno, - _("%s: cannot seek to end-relative offset %s"), + error (0, errno, _("%s: cannot seek to end-relative offset %s"), filename, s); break; default: abort (); } + + exit (EXIT_FAILURE); } /* Print the last N_LINES lines from the end of file FD. |