From b1268fc4455f61ee49412fc256106cd34e98ce7c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 13 Jun 2004 23:50:55 +0000 Subject: 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) --- source4/torture/nbench/nbench.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/torture/nbench') 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) { -- cgit