From 83ca2782f95235d5e44278a684358eb3825d958c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 9 Jul 2003 08:54:24 +0000 Subject: (xlseek): Avoid warning about ``return without value from function returning non-void''. --- src/tail.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/tail.c') 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. -- cgit v1.2.3-54-g00ecf