From c39b90f047840c884914b8e9ed2ac70707694efc Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Wed, 4 Jun 2003 12:51:21 +0000 Subject: Fix compiler warnings for vfstest. Patch from Stefan Metzmacher (This used to be commit db255608f15c447596c336dbdafb56fb9308e9c5) --- source3/torture/vfstest.c | 5 +++-- 1 file 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; -- cgit