mirror of
https://github.com/samba-team/samba.git
synced 2025-08-05 12:22:11 +03:00
portability fixes
This commit is contained in:
@ -1251,8 +1251,9 @@ int main(int argc,char *argv[])
|
|||||||
int argc_new = 0;
|
int argc_new = 0;
|
||||||
const char ** argv_new;
|
const char ** argv_new;
|
||||||
poptContext pc;
|
poptContext pc;
|
||||||
char *servicesf = dyn_CONFIGFILE;
|
static char *servicesf = dyn_CONFIGFILE;
|
||||||
extern pstring global_myname;
|
extern pstring global_myname;
|
||||||
|
static int debuglevel;
|
||||||
|
|
||||||
struct poptOption long_options[] = {
|
struct poptOption long_options[] = {
|
||||||
{"help", 'h', POPT_ARG_NONE, 0, 'h'},
|
{"help", 'h', POPT_ARG_NONE, 0, 'h'},
|
||||||
@ -1263,8 +1264,8 @@ int main(int argc,char *argv[])
|
|||||||
{"port", 'p', POPT_ARG_INT, &opt_port},
|
{"port", 'p', POPT_ARG_INT, &opt_port},
|
||||||
{"myname", 'n', POPT_ARG_STRING, &opt_requester_name},
|
{"myname", 'n', POPT_ARG_STRING, &opt_requester_name},
|
||||||
{"conf", 's', POPT_ARG_STRING, &servicesf},
|
{"conf", 's', POPT_ARG_STRING, &servicesf},
|
||||||
{"debug", 'd', POPT_ARG_INT, &DEBUGLEVEL, 'd'},
|
{"debug", 'd', POPT_ARG_INT, &debuglevel, 'd'},
|
||||||
{"debuglevel", 'd', POPT_ARG_INT, &DEBUGLEVEL, 'd'},
|
{"debuglevel", 'd', POPT_ARG_INT, &debuglevel, 'd'},
|
||||||
{"server", 'S', POPT_ARG_STRING, &opt_host},
|
{"server", 'S', POPT_ARG_STRING, &opt_host},
|
||||||
{"comment", 'C', POPT_ARG_STRING, &opt_comment},
|
{"comment", 'C', POPT_ARG_STRING, &opt_comment},
|
||||||
{"maxusers", 'M', POPT_ARG_INT, &opt_maxusers},
|
{"maxusers", 'M', POPT_ARG_INT, &opt_maxusers},
|
||||||
@ -1310,6 +1311,8 @@ int main(int argc,char *argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DEBUGLEVEL = debuglevel;
|
||||||
|
|
||||||
lp_load(servicesf,True,False,False);
|
lp_load(servicesf,True,False,False);
|
||||||
|
|
||||||
argv_new = (const char **)poptGetArgs(pc);
|
argv_new = (const char **)poptGetArgs(pc);
|
||||||
|
Reference in New Issue
Block a user