]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(xlseek): Avoid warning about ``return without value
authorJim Meyering <jim@meyering.net>
Wed, 9 Jul 2003 08:54:24 +0000 (08:54 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 9 Jul 2003 08:54:24 +0000 (08:54 +0000)
from function returning non-void''.

src/tail.c

index 1c76ef67e16577b337f09ef77a2094542e48136b..b923085d1ae837d8fea7039097aebad2233dd887 100644 (file)
@@ -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.