diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-06-13 23:50:55 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:56:38 -0500 |
commit | b1268fc4455f61ee49412fc256106cd34e98ce7c (patch) | |
tree | 3b2308a0f1f3e597ab8bc968d5295988c1654ec0 /source4/torture/nbench | |
parent | 8dcb4aa084457e6d7a68467dceebc11abe4464bd (diff) | |
download | samba-b1268fc4455f61ee49412fc256106cd34e98ce7c.tar.gz samba-b1268fc4455f61ee49412fc256106cd34e98ce7c.tar.bz2 samba-b1268fc4455f61ee49412fc256106cd34e98ce7c.zip |
r1123: Make all lp_ string functions return 'const char *'.
Fix other 'const' warnings in the torture code.
Andrew Bartlett
(This used to be commit 5d39d7497f189da15d659b3f83b7314026040a15)
Diffstat (limited to 'source4/torture/nbench')
-rw-r--r-- | source4/torture/nbench/nbench.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/nbench/nbench.c b/source4/torture/nbench/nbench.c index 53ca760b99..30291a829e 100644 --- a/source4/torture/nbench/nbench.c +++ b/source4/torture/nbench/nbench.c @@ -23,7 +23,7 @@ int nbench_line_count = 0; static int timelimit = 600; static int warmup; -static char *loadfile; +static const char *loadfile; #define ival(s) strtol(s, NULL, 0) @@ -165,7 +165,7 @@ BOOL torture_nbench(int dummy) BOOL correct = True; extern int torture_nprocs; struct cli_state *cli; - char *p; + const char *p; p = lp_parm_string(-1, "torture", "timelimit"); if (p && *p) { |