diff options
author | Jim Meyering <meyering@redhat.com> | 2009-07-11 09:43:25 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-07-11 09:43:25 +0200 |
commit | 8f3171bbc463d813f17f0dfec22f7074142675d8 (patch) | |
tree | ae605125c53e8aaa4e5a3db871ef1408c5027c47 | |
parent | 68149832bd62d0e9c0dc6d4577d9343d0dc9ddbd (diff) | |
download | coreutils-8f3171bbc463d813f17f0dfec22f7074142675d8.tar.xz |
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.
-rw-r--r-- | src/tail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tail.c b/src/tail.c index 2ac62b229..fd44e220d 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) |