[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] [PATCH libguestfs 04/13] avoid warning about old-style no-param function definition



From: Jim Meyering <meyering redhat com>

* daemon/df.c (do_df, do_df_h): Add "void".
* sync.c (do_sync): Likewise.
---
 daemon/df.c   |    4 ++--
 daemon/sync.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

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;
-- 
1.6.4.378.g88f2f


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]