X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fdf.c;h=a1ec706df3aff4f70b7d3ce28c62a39f6baece66;hp=563760d20b4404be2a86d1f89423053a0d1d4282;hb=428a45c3e15f03e9861e1b551e1ae8da821dba5f;hpb=d7569c00787fb92a8cd2f08c537ea1662f987901 diff --git a/daemon/df.c b/daemon/df.c index 563760d..a1ec706 100644 --- a/daemon/df.c +++ b/daemon/df.c @@ -23,7 +23,7 @@ #include #include -#include "../src/guestfs_protocol.h" +#include "guestfs_protocol.h" #include "daemon.h" #include "actions.h" @@ -33,11 +33,11 @@ do_df (void) int r; char *out, *err; - NEED_ROOT (return NULL); + NEED_ROOT (0, return NULL); r = command (&out, &err, "df", NULL); if (r == -1) { - reply_with_error ("df: %s", err); + reply_with_error ("%s", err); free (out); free (err); return NULL; @@ -54,11 +54,11 @@ do_df_h (void) int r; char *out, *err; - NEED_ROOT (return NULL); + NEED_ROOT (0, return NULL); r = command (&out, &err, "df", "-h", NULL); if (r == -1) { - reply_with_error ("df -h: %s", err); + reply_with_error ("%s", err); free (out); free (err); return NULL;