chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f4e5c25
)
mount: use bools where appropriate
author
Lennart Poettering
<lennart@poettering.net>
Tue, 9 Dec 2014 23:52:56 +0000
(
00:52
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 10 Dec 2014 00:48:39 +0000
(
01:48
+0100)
src/core/mount.c
patch
|
blob
|
history
diff --git
a/src/core/mount.c
b/src/core/mount.c
index a39076838b205f80fc0b2110131bfa78566adcf9..5f268c6ddc45e5d54d750804d2b1760762459e1e 100644
(file)
--- 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;
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; ) {
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"))
* 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;
}
p += sizeof(struct inotify_event) + event->len;
}