s4:torture/nbench/nbench - Add a cast before "str_list_make_shell"
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Sat, 17 Oct 2009 20:35:21 +0000 (22:35 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 1 Dec 2009 05:48:22 +0000 (16:48 +1100)
source4/torture/nbench/nbench.c

index 05c889d1b7d34587bc91c1bbe3f0d42e29b6b10e..b96a32b30e2b2454b0686126acb2377f0dc91f95 100644 (file)
@@ -99,9 +99,10 @@ again:
                        line[strlen(line)-1] = 0;
                }
 
-               all_string_sub(line,"client1", cname, sizeof(line));
+               all_string_sub(line, "client1", cname, sizeof(line));
                
-               params = params0 = str_list_make_shell(NULL, line, " ");
+               params = params0 = const_str_list(
+                                       str_list_make_shell(NULL, line, " "));
                i = str_list_length(params);
 
                if (i > 0 && isdigit(params[0][0])) {