X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fdf.c;h=a1ec706df3aff4f70b7d3ce28c62a39f6baece66;hp=0a7303c7e9a8ff2f14bc8469c212b4055002e335;hb=428a45c3e15f03e9861e1b551e1ae8da821dba5f;hpb=405cf2a5772611ea05cca9fefa843154a9bc64a3 diff --git a/daemon/df.c b/daemon/df.c index 0a7303c..a1ec706 100644 --- a/daemon/df.c +++ b/daemon/df.c @@ -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 @@ -23,21 +23,21 @@ #include #include -#include "../src/guestfs_protocol.h" +#include "guestfs_protocol.h" #include "daemon.h" #include "actions.h" char * -do_df () +do_df (void) { int r; char *out, *err; - NEED_ROOT (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; @@ -49,16 +49,16 @@ do_df () } char * -do_df_h () +do_df_h (void) { int r; char *out, *err; - NEED_ROOT (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;