From 29e7b9908ea6a4c2a864955e73d5b1d7d64f1fc8 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 17 Aug 2009 09:40:16 +0200 Subject: [PATCH] wc, blockdev: avoid warnings about discarding "const" qualifiers * 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.8.3.1