generator.ml: new type, "Pathname"
[libguestfs.git] / daemon / stat.c
index da360ce..4845851 100644 (file)
@@ -37,8 +37,8 @@ do_stat (char *path)
   guestfs_int_stat *ret;
   struct stat statbuf;
 
-  NEED_ROOT (NULL);
-  ABS_PATH (path, NULL);
+  NEED_ROOT (return NULL);
+  ABS_PATH (path, return NULL);
 
   CHROOT_IN;
   r = stat (path, &statbuf);
@@ -79,8 +79,8 @@ do_lstat (char *path)
   guestfs_int_stat *ret;
   struct stat statbuf;
 
-  NEED_ROOT (NULL);
-  ABS_PATH (path, NULL);
+  NEED_ROOT (return NULL);
+  ABS_PATH (path, return NULL);
 
   CHROOT_IN;
   r = lstat (path, &statbuf);
@@ -121,8 +121,8 @@ do_statvfs (char *path)
   guestfs_int_statvfs *ret;
   struct statvfs statbuf;
 
-  NEED_ROOT (NULL);
-  ABS_PATH (path, NULL);
+  NEED_ROOT (return NULL);
+  ABS_PATH (path, return NULL);
 
   CHROOT_IN;
   r = statvfs (path, &statbuf);