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

[Libguestfs] [PATCH libguestfs 08/13] wc, blockdev: avoid warnings about discarding "const" qualifiers



From: Jim Meyering <meyering redhat com>

* daemon/wc.c (wc): Make "flag" param const.
* daemon/blockdev.c (call_blockdev): Likewise, for "switc".
---
 daemon/blockdev.c |    2 +-
 daemon/wc.c       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/daemon/blockdev.c b/daemon/blockdev.c
index e0ac350..1aa6eaa 100644
--- a/daemon/blockdev.c
+++ b/daemon/blockdev.c
@@ -32,7 +32,7 @@
  * we centralize it in one call.
  */
 static int64_t
-call_blockdev (const char *device, char *switc, int extraarg, int prints)
+call_blockdev (const char *device, const char *switc, int extraarg, int prints)
 {
   int r;
   int64_t rv;
diff --git a/daemon/wc.c b/daemon/wc.c
index 93d4ebb..b64940b 100644
--- a/daemon/wc.c
+++ b/daemon/wc.c
@@ -28,7 +28,7 @@
 #include "actions.h"

 static int
-wc (char *flag, const char *path)
+wc (const char *flag, const char *path)
 {
   char *buf;
   char *out, *err;
-- 
1.6.4.378.g88f2f


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