From: Jim Meyering Date: Wed, 9 Jul 2003 08:54:24 +0000 (+0000) Subject: (xlseek): Avoid warning about ``return without value X-Git-Tag: v5.0.1~155 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83ca2782f95235d5e44278a684358eb3825d958c;p=thirdparty%2Fcoreutils.git (xlseek): Avoid warning about ``return without value from function returning non-void''. --- diff --git a/src/tail.c b/src/tail.c index 1c76ef67e1..b923085d1a 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.