X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Finotify.c;h=3e314f03b8f28faf0c44022feffd40a84d7f75ec;hp=2f22f52c8b646ec3fa2542e094e0048ab07ffa30;hb=3e70b34eed5a48640e20fbf6dcba774aaace1f3c;hpb=0dd6c8c8442d4ff588f6dac2efab24d3409b0dec diff --git a/daemon/inotify.c b/daemon/inotify.c index 2f22f52..3e314f0 100644 --- a/daemon/inotify.c +++ b/daemon/inotify.c @@ -51,7 +51,7 @@ do_inotify_init (int max_events) { FILE *fp; - NEED_ROOT (-1); + NEED_ROOT (return -1); if (max_events < 0) { reply_with_error ("inotify_init: max_events < 0"); @@ -123,13 +123,12 @@ do_inotify_close (void) } int64_t -do_inotify_add_watch (char *path, int mask) +do_inotify_add_watch (const char *path, int mask) { int64_t r; char *buf; NEED_INOTIFY (-1); - ABS_PATH (path, return -1); buf = sysroot_path (path); if (!buf) {