update all NEED_ROOT uses

run this command:
  git grep -l -w NEED_ROOT|xargs perl -pi -e \
    's/(NEED_ROOT) \((.*?)\)/$1 (return $2)/'
This commit is contained in:
Jim Meyering
2009-08-10 23:11:01 +02:00
parent 0c07f0d236
commit 6bda071b5c
32 changed files with 57 additions and 57 deletions

View File

@@ -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");