diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-04-21 18:38:51 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-04-21 18:38:51 +0200 |
commit | 9de2e5a22213842da5b116723392de88de9ed419 (patch) | |
tree | dff999a566382174e084d377dc3b4c03de1d4c62 /miscutils/inotifyd.c | |
parent | 47cfbf32fd66563f8c4e09ad6cced6abfbe2fad5 (diff) | |
download | busybox-w32-9de2e5a22213842da5b116723392de88de9ed419.tar.gz busybox-w32-9de2e5a22213842da5b116723392de88de9ed419.tar.bz2 busybox-w32-9de2e5a22213842da5b116723392de88de9ed419.zip |
*: hopefully all setup_common_bufsiz() are in place
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/inotifyd.c')
-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) { |