diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-12-10 00:52:56 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-12-10 01:48:39 +0100 |
commit | df63dda6d4b4fc90f895cfd40d54e15928671624 (patch) | |
tree | 8ea76ef7c9b103bc729a524a7be59fd984ec3bc4 | |
parent | f4e5c25cd7f8ef8aef07f2915ba3f7462e0cab06 (diff) |
mount: use bools where appropriate
-rw-r--r-- | src/core/mount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/mount.c b/src/core/mount.c index a39076838b..5f268c6ddc 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -1664,7 +1664,7 @@ static int mount_dispatch_io(sd_event_source *source, int fd, uint32_t revents, char inotify_buffer[sizeof(struct inotify_event) + NAME_MAX + 1]; struct inotify_event *event; char *p; - int rescan = 0; + bool rescan = false; while ((r = read(fd, inotify_buffer, sizeof(inotify_buffer))) > 0) for (p = inotify_buffer; p < inotify_buffer + r; ) { @@ -1674,7 +1674,7 @@ static int mount_dispatch_io(sd_event_source *source, int fd, uint32_t revents, * notifications about when utab is replaced * using rename(2) */ if ((event->mask & IN_Q_OVERFLOW) || streq(event->name, "utab")) - rescan = 1; + rescan = true; p += sizeof(struct inotify_event) + event->len; } |