mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
s4:torture: avoid argv related const warnings
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
f2103cc7a7
commit
8195a7155a
@ -3155,7 +3155,7 @@ static bool split_unc_name(const char *unc, char **server, char **share)
|
||||
/****************************************************************************
|
||||
main program
|
||||
****************************************************************************/
|
||||
int main(int argc, char *argv[])
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
int opt;
|
||||
int i, username_count=0;
|
||||
@ -3203,7 +3203,7 @@ static bool split_unc_name(const char *unc, char **server, char **share)
|
||||
options.max_open_handles = 20;
|
||||
options.seeds_file = "gentest_seeds.dat";
|
||||
|
||||
pc = poptGetContext("gentest", argc, (const char **) argv, long_options,
|
||||
pc = poptGetContext("gentest", argc, argv, long_options,
|
||||
POPT_CONTEXT_KEEP_FIRST);
|
||||
|
||||
poptSetOtherOptionHelp(pc, "<unc1> <unc2>");
|
||||
|
@ -547,7 +547,7 @@ static void usage(poptContext pc)
|
||||
/****************************************************************************
|
||||
main program
|
||||
****************************************************************************/
|
||||
int main(int argc,char *argv[])
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
char *share[NSERVERS];
|
||||
int opt;
|
||||
@ -584,7 +584,7 @@ static void usage(poptContext pc)
|
||||
setlinebuf(stdout);
|
||||
seed = time(NULL);
|
||||
|
||||
pc = poptGetContext("locktest", argc, (const char **) argv, long_options,
|
||||
pc = poptGetContext("locktest", argc, argv, long_options,
|
||||
POPT_CONTEXT_KEEP_FIRST);
|
||||
|
||||
poptSetOtherOptionHelp(pc, "<unc1> <unc2>");
|
||||
|
@ -286,7 +286,7 @@ static void usage(poptContext pc)
|
||||
/****************************************************************************
|
||||
main program
|
||||
****************************************************************************/
|
||||
int main(int argc,char *argv[])
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
char *share;
|
||||
struct smbcli_state *cli;
|
||||
@ -321,7 +321,7 @@ static void usage(poptContext pc)
|
||||
setlinebuf(stdout);
|
||||
seed = time(NULL);
|
||||
|
||||
pc = poptGetContext("locktest", argc, (const char **) argv, long_options,
|
||||
pc = poptGetContext("locktest", argc, argv, long_options,
|
||||
POPT_CONTEXT_KEEP_FIRST);
|
||||
|
||||
poptSetOtherOptionHelp(pc, "<unc>");
|
||||
|
@ -358,7 +358,7 @@ _NORETURN_ static void max_runtime_handler(int sig)
|
||||
/****************************************************************************
|
||||
main program
|
||||
****************************************************************************/
|
||||
int main(int argc,char *argv[])
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
int opt, i;
|
||||
bool correct = true;
|
||||
@ -430,7 +430,7 @@ int main(int argc,char *argv[])
|
||||
/* we are never interested in SIGPIPE */
|
||||
BlockSignals(true, SIGPIPE);
|
||||
|
||||
pc = poptGetContext("smbtorture", argc, (const char **) argv, long_options,
|
||||
pc = poptGetContext("smbtorture", argc, argv, long_options,
|
||||
POPT_CONTEXT_KEEP_FIRST);
|
||||
|
||||
poptSetOtherOptionHelp(pc, "<binding>|<unc> TEST1 TEST2 ...");
|
||||
|
Loading…
x
Reference in New Issue
Block a user