summaryrefslogtreecommitdiff
path: root/source3
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
commitc39b90f047840c884914b8e9ed2ac70707694efc (patch)
treeb21ffb927f5293ebb2ec762fb1fa52cad54d63f0 /source3
parent07aaa59018dc5363e3a23474e9f03005f55c8471 (diff)
downloadsamba-c39b90f047840c884914b8e9ed2ac70707694efc.tar.gz
samba-c39b90f047840c884914b8e9ed2ac70707694efc.tar.bz2
samba-c39b90f047840c884914b8e9ed2ac70707694efc.zip
Fix compiler warnings for vfstest. Patch from Stefan Metzmacher <mezte@metzemix.de>
(This used to be commit db255608f15c447596c336dbdafb56fb9308e9c5)
Diffstat (limited to 'source3')
-rw-r--r--source3/torture/vfstest.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/torture/vfstest.c b/source3/torture/vfstest.c
index fbdc0ff054..88fe348649 100644
--- a/source3/torture/vfstest.c
+++ b/source3/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;