tail: declare "file descriptor" variable to be "int", not size_t
authorJim Meyering <meyering@redhat.com>
Wed, 8 Jul 2009 17:51:22 +0000 (19:51 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 8 Jul 2009 17:52:58 +0000 (19:52 +0200)
* src/tail.c (tail_forever_inotify): Use "int", not size_t
as the type of a file descriptor variable.

src/tail.c

index b3ebba9..79c5576 100644 (file)
@@ -1169,7 +1169,7 @@ tail_forever_inotify (int wd, struct File_spec *f, int n_files)
   Hash_table *wd_table;
 
   bool found_watchable = false;
-  size_t prev_wd;
+  int prev_wd;
   size_t evlen = 0;
   char *evbuf;
   size_t evbuf_off = 0;