summaryrefslogtreecommitdiffstats
path: root/daemon/inotify.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-10 23:11:01 +0200
committerJim Meyering <meyering@redhat.com>2009-08-13 14:45:34 +0200
commit6bda071b5cd8393b37653687027c4ae6c6cf3804 (patch)
tree58271b258a06cff6066cdec062b3d08bf68139d3 /daemon/inotify.c
parent0c07f0d23698798475e0d09491812aca52440328 (diff)
downloadlibguestfs-6bda071b5cd8393b37653687027c4ae6c6cf3804.tar.gz
libguestfs-6bda071b5cd8393b37653687027c4ae6c6cf3804.tar.xz
libguestfs-6bda071b5cd8393b37653687027c4ae6c6cf3804.zip
update all NEED_ROOT uses
run this command: git grep -l -w NEED_ROOT|xargs perl -pi -e \ 's/(NEED_ROOT) \((.*?)\)/$1 (return $2)/'
Diffstat (limited to 'daemon/inotify.c')
-rw-r--r--daemon/inotify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/inotify.c b/daemon/inotify.c
index 2f22f52c..96b96815 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");