mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user