git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
extra tests: Run C API tests under valgrind.
[libguestfs.git]
/
daemon
/
df.c
diff --git
a/daemon/df.c
b/daemon/df.c
index
ad662fa
..
14954d2
100644
(file)
--- a/
daemon/df.c
+++ b/
daemon/df.c
@@
-13,7
+13,7
@@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139,
USA.
+ * Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA.
*/
#include <config.h>
*/
#include <config.h>
@@
-23,21
+23,21
@@
#include <string.h>
#include <unistd.h>
#include <string.h>
#include <unistd.h>
-#include "
../src/
guestfs_protocol.h"
+#include "guestfs_protocol.h"
#include "daemon.h"
#include "actions.h"
char *
#include "daemon.h"
#include "actions.h"
char *
-do_df ()
+do_df (
void
)
{
int r;
char *out, *err;
{
int r;
char *out, *err;
- NEED_ROOT (return NULL);
+ NEED_ROOT (
,
return NULL);
r = command (&out, &err, "df", NULL);
if (r == -1) {
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;
free (out);
free (err);
return NULL;
@@
-49,16
+49,16
@@
do_df ()
}
char *
}
char *
-do_df_h ()
+do_df_h (
void
)
{
int r;
char *out, *err;
{
int r;
char *out, *err;
- NEED_ROOT (return NULL);
+ NEED_ROOT (
,
return NULL);
r = command (&out, &err, "df", "-h", NULL);
if (r == -1) {
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;
free (out);
free (err);
return NULL;