From: Jim Meyering <meyering(a)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