diff options
Diffstat (limited to '')
-rw-r--r-- | miscutils/inotifyd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/miscutils/inotifyd.c b/miscutils/inotifyd.c index 1d28e8f99..52db08ada 100644 --- a/miscutils/inotifyd.c +++ b/miscutils/inotifyd.c | |||
@@ -162,10 +162,10 @@ int inotifyd_main(int argc, char **argv) | |||
162 | 162 | ||
163 | // read out all pending events | 163 | // read out all pending events |
164 | // (NB: len must be int, not ssize_t or long!) | 164 | // (NB: len must be int, not ssize_t or long!) |
165 | #define eventbuf bb_common_bufsiz1 | ||
166 | setup_common_bufsiz(); | ||
165 | xioctl(pfd.fd, FIONREAD, &len); | 167 | xioctl(pfd.fd, FIONREAD, &len); |
166 | #define eventbuf bb_common_bufsiz1 | 168 | ie = buf = (len <= COMMON_BUFSIZE) ? eventbuf : xmalloc(len); |
167 | #define sizeof_eventbuf COMMON_BUFSIZE | ||
168 | ie = buf = (len <= sizeof_eventbuf) ? eventbuf : xmalloc(len); | ||
169 | len = full_read(pfd.fd, buf, len); | 169 | len = full_read(pfd.fd, buf, len); |
170 | // process events. N.B. events may vary in length | 170 | // process events. N.B. events may vary in length |
171 | while (len > 0) { | 171 | while (len > 0) { |