From: Jim Meyering Date: Mon, 17 Aug 2009 07:15:34 +0000 (+0200) Subject: avoid warning about old-style no-param function definition X-Git-Tag: 1.0.68~45 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=d7569c00787fb92a8cd2f08c537ea1662f987901;p=libguestfs.git avoid warning about old-style no-param function definition * daemon/df.c (do_df, do_df_h): Add "void". * sync.c (do_sync): Likewise. --- diff --git a/daemon/df.c b/daemon/df.c index ad662fa..563760d 100644 --- a/daemon/df.c +++ b/daemon/df.c @@ -28,7 +28,7 @@ #include "actions.h" char * -do_df () +do_df (void) { int r; char *out, *err; @@ -49,7 +49,7 @@ do_df () } char * -do_df_h () +do_df_h (void) { int r; char *out, *err; diff --git a/daemon/sync.c b/daemon/sync.c index b353b6c..e96bf03 100644 --- a/daemon/sync.c +++ b/daemon/sync.c @@ -24,7 +24,7 @@ #include "actions.h" int -do_sync () +do_sync (void) { sync (); return 0;