summaryrefslogtreecommitdiff
path: root/source4/torture/torture.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-03-15 10:24:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:57:24 -0500
commit72017b0183f2d0a10d890fe3f6e509d297058c69 (patch)
tree81efa4d6718bff1436ffdea71dc4d37f367f9a31 /source4/torture/torture.c
parent2e959619c1a5e839fc9ac94b729ce85705944971 (diff)
downloadsamba-72017b0183f2d0a10d890fe3f6e509d297058c69.tar.gz
samba-72017b0183f2d0a10d890fe3f6e509d297058c69.tar.bz2
samba-72017b0183f2d0a10d890fe3f6e509d297058c69.zip
r14437: fix warnings
metze (This used to be commit 2017c2573ecbe49b5b7456bfcc3e1c7ca5934a54)
Diffstat (limited to 'source4/torture/torture.c')
-rw-r--r--source4/torture/torture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c
index 0008d348e0..ae0e1d20fd 100644
--- a/source4/torture/torture.c
+++ b/source4/torture/torture.c
@@ -2036,7 +2036,7 @@ double torture_create_procs(BOOL (*fn)(struct smbcli_state *, int), BOOL *result
procnum = i;
if (fork() == 0) {
char *myname;
- const char *hostname=NULL, *sharename;
+ char *hostname=NULL, *sharename;
pid_t mypid = getpid();
srandom(((int)mypid) ^ ((int)time(NULL)));
@@ -2649,7 +2649,7 @@ static void max_runtime_handler(int sig)
lp_set_cmdline("torture:binding", argv_new[1]);
} else {
char *binding = NULL;
- const char *host = NULL, *share = NULL;
+ char *host = NULL, *share = NULL;
if (!smbcli_parse_unc(argv_new[1], NULL, &host, &share)) {
d_printf("Invalid option: %s is not a valid torture target (share or binding string)\n\n", argv_new[1]);