jra: POPT_ARG_VAL arguments need int values.
I assume there're more places like this
in the cmdline tools.
Please fix this properly, as my commit is just
a hack to get make test working again.
in samba4 we have a workaround for this see
smbd/server.c
metze
extern bool override_logfile;
-/* are we running as a daemon ? */
-static bool is_daemon;
-
-/* fork or run in foreground ? */
-static bool Fork = True;
-
-/* log to standard output ? */
-static bool log_stdout;
-
/* have we found LanMan clients yet? */
bool found_lm_clients = False;
**************************************************************************** */
int main(int argc, const char *argv[])
{
+ static int is_daemon;
+ static int Fork = True;
+ static int log_stdout;
pstring logfile;
- static bool opt_interactive;
+ static int opt_interactive;
poptContext pc;
static char *p_lmhosts = dyn_LMHOSTSFILE;
- static bool no_process_group = False;
+ static int no_process_group = False;
int opt;
struct poptOption long_options[] = {
POPT_AUTOHELP
int main(int argc,const char *argv[])
{
/* shall I run as a daemon */
- static bool is_daemon = False;
- static bool interactive = False;
- static bool Fork = True;
- static bool no_process_group = False;
- static bool log_stdout = False;
+ static int is_daemon = False;
+ static int interactive = False;
+ static int Fork = True;
+ static int no_process_group = False;
+ static int log_stdout = False;
static char *ports = NULL;
static char *profile_level = NULL;
int opt;
int main(int argc, char **argv, char **envp)
{
pstring logfile;
- static bool is_daemon = False;
- static bool Fork = True;
- static bool log_stdout = False;
- static bool no_process_group = False;
+ static int is_daemon = False;
+ static int Fork = True;
+ static int log_stdout = False;
+ static int no_process_group = False;
struct poptOption long_options[] = {
POPT_AUTOHELP
{ "stdout", 'S', POPT_ARG_VAL, &log_stdout, True, "Log to stdout" },