From: Jim Meyering Date: Mon, 17 Aug 2009 07:40:16 +0000 (+0200) Subject: wc, blockdev: avoid warnings about discarding "const" qualifiers X-Git-Tag: 1.0.68~41 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=29e7b9908ea6a4c2a864955e73d5b1d7d64f1fc8;p=libguestfs.git wc, blockdev: avoid warnings about discarding "const" qualifiers * daemon/wc.c (wc): Make "flag" param const. * daemon/blockdev.c (call_blockdev): Likewise, for "switc". --- 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;