generator.ml: constify do_mkdtemp
[libguestfs.git] / daemon / df.c
index 0a7303c..ad662fa 100644 (file)
@@ -1,5 +1,5 @@
 /* libguestfs - the guestfsd daemon
- * Copyright (C) 2009 Red Hat Inc. 
+ * Copyright (C) 2009 Red Hat Inc.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -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) {