]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tail: adjust type of a local variable
authorJim Meyering <meyering@redhat.com>
Sat, 11 Jul 2009 07:43:25 +0000 (09:43 +0200)
committerJim Meyering <meyering@redhat.com>
Sat, 11 Jul 2009 07:43:25 +0000 (09:43 +0200)
* src/tail.c (tail_forever_inotify): Declare "len" to be of type
size_t, not ssize_t, since the former is what safe_read returns.

src/tail.c

index 2ac62b229861d15e4380827e0cf47b77269a662f..fd44e220def4d4bba729557b07451d6645a40dc9 100644 (file)
@@ -1173,7 +1173,7 @@ tail_forever_inotify (int wd, struct File_spec *f, size_t n_files)
   size_t evlen = 0;
   char *evbuf;
   size_t evbuf_off = 0;
-  ssize_t len = 0;
+  size_t len = 0;
 
   wd_table = hash_initialize (n_files, NULL, wd_hasher, wd_comparator, NULL);
   if (! wd_table)