(tail_forever): Add a cast.
authorJim Meyering <jim@meyering.net>
Sat, 17 Nov 2001 14:10:52 +0000 (14:10 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 17 Nov 2001 14:10:52 +0000 (14:10 +0000)
src/tail.c

index 58ecd298b682b04fa3dea221d9e4f95a56fd12af..b358295c372908cb12f8008b92b99f48ba769efe 100644 (file)
@@ -952,7 +952,7 @@ tail_forever (struct File_spec *f, int nfiles)
              error (0, 0, _("%s: file truncated"), pretty_name (&f[i]));
              last = i;
              /* FIXME: check lseek return value  */
-             lseek (f[i].fd, stats.st_size, SEEK_SET);
+             lseek (f[i].fd, (off_t) stats.st_size, SEEK_SET);
              f[i].size = stats.st_size;
              continue;
            }