summaryrefslogtreecommitdiffstats
path: root/source/torture/vfstest.c
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2003-06-04 12:51:21 +0000
committerAlexander Bokovoy <ab@samba.org>2003-06-04 12:51:21 +0000
commitdb255608f15c447596c336dbdafb56fb9308e9c5 (patch)
treef1b4212a8085ecbaf569a3137d481099f9f3846c /source/torture/vfstest.c
parentc5e8acd3b7b8a7063aa6ffde1099196daf1c317b (diff)
downloadsamba-db255608f15c447596c336dbdafb56fb9308e9c5.tar.gz
samba-db255608f15c447596c336dbdafb56fb9308e9c5.tar.xz
samba-db255608f15c447596c336dbdafb56fb9308e9c5.zip
Fix compiler warnings for vfstest. Patch from Stefan Metzmacher <mezte@metzemix.de>
Diffstat (limited to 'source/torture/vfstest.c')
-rw-r--r--source/torture/vfstest.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/torture/vfstest.c b/source/torture/vfstest.c
index fbdc0ff054a..88fe3486493 100644
--- a/source/torture/vfstest.c
+++ b/source/torture/vfstest.c
@@ -261,7 +261,8 @@ static void add_command_set(struct cmd_set *cmd_set)
static NTSTATUS do_cmd(struct vfs_state *vfs, struct cmd_set *cmd_entry, char *cmd)
{
- char *p = cmd, **argv = NULL;
+ const char *p = cmd;
+ char **argv = NULL;
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
pstring buf;
TALLOC_CTX *mem_ctx = NULL;
@@ -338,7 +339,7 @@ static NTSTATUS process_cmd(struct vfs_state *vfs, char *cmd)
struct cmd_list *temp_list;
BOOL found = False;
pstring buf;
- char *p = cmd;
+ const char *p = cmd;
NTSTATUS result = NT_STATUS_OK;
int len = 0;