summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-17 09:40:16 +0200
committerJim Meyering <meyering@redhat.com>2009-08-17 11:40:24 +0200
commit29e7b9908ea6a4c2a864955e73d5b1d7d64f1fc8 (patch)
tree2e5e23b543e9f0bb18b8cfd30a99d6bce4f41cdd
parent5a9b41ed4462ec765303b973f74f17d5c0138a9a (diff)
downloadlibguestfs-29e7b9908ea6a4c2a864955e73d5b1d7d64f1fc8.tar.gz
libguestfs-29e7b9908ea6a4c2a864955e73d5b1d7d64f1fc8.tar.xz
libguestfs-29e7b9908ea6a4c2a864955e73d5b1d7d64f1fc8.zip
wc, blockdev: avoid warnings about discarding "const" qualifiers
* daemon/wc.c (wc): Make "flag" param const. * daemon/blockdev.c (call_blockdev): Likewise, for "switc".
-rw-r--r--daemon/blockdev.c2
-rw-r--r--daemon/wc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/daemon/blockdev.c b/daemon/blockdev.c
index e0ac3502..1aa6eaa2 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 93d4ebbd..b64940b7 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;