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

@@ -33,7 +33,7 @@ do_df ()
int r;
char *out, *err;
NEED_ROOT (NULL);
NEED_ROOT (return NULL);
r = command (&out, &err, "df", NULL);
if (r == -1) {
@@ -54,7 +54,7 @@ do_df_h ()
int r;
char *out, *err;
NEED_ROOT (NULL);
NEED_ROOT (return NULL);
r = command (&out, &err, "df", "-h", NULL);
if (r == -1) {