git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix 'unknown filesystem' warnings in old inspection code (RHBZ#678231 RHBZ#666578).
[libguestfs.git]
/
daemon
/
df.c
diff --git
a/daemon/df.c
b/daemon/df.c
index
ad662fa
..
7127c00
100644
(file)
--- a/
daemon/df.c
+++ b/
daemon/df.c
@@
-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;