mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
Fix CID 574 - tidies up the code expression.
Jeremy.
This commit is contained in:
parent
f1a70d1e2a
commit
35ef924f33
@ -243,14 +243,14 @@ static void inotify_handler(struct event_context *ev, struct fd_event *fde,
|
||||
e0 = e = (struct inotify_event *)TALLOC_SIZE(in, bufsize);
|
||||
if (e == NULL) return;
|
||||
|
||||
if (read(in->fd, e0, bufsize) != bufsize) {
|
||||
if (sys_read(in->fd, e0, bufsize) != bufsize) {
|
||||
DEBUG(0,("Failed to read all inotify data\n"));
|
||||
talloc_free(e0);
|
||||
return;
|
||||
}
|
||||
|
||||
/* we can get more than one event in the buffer */
|
||||
while (bufsize >= sizeof(*e)) {
|
||||
while (e && (bufsize >= sizeof(*e))) {
|
||||
struct inotify_event *e2 = NULL;
|
||||
bufsize -= e->len + sizeof(*e);
|
||||
if (bufsize >= sizeof(*e)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user