wc, blockdev: avoid warnings about discarding "const" qualifiers

* daemon/wc.c (wc): Make "flag" param const.
* daemon/blockdev.c (call_blockdev): Likewise, for "switc".
This commit is contained in:
Jim Meyering
2009-08-17 09:40:16 +02:00
parent 5a9b41ed44
commit 29e7b9908e
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;