From: Jim Meyering Date: Sat, 11 Jul 2009 07:43:25 +0000 (+0200) Subject: tail: adjust type of a local variable X-Git-Tag: v7.5~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8f3171bbc463d813f17f0dfec22f7074142675d8;p=thirdparty%2Fcoreutils.git tail: adjust type of a local variable * 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. --- diff --git a/src/tail.c b/src/tail.c index 2ac62b2298..fd44e220de 100644 --- a/src/tail.c +++ b/src/tail.c @@ -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)