Revision 2e5a1c8d
Added by Hamish Coleman almost 17 years ago
- ID 2e5a1c8d309060e85087bef85af13567fdeceea0
| wconsd.c | ||
|---|---|---|
|
WSADATA wsaData;
|
||
|
int err;
|
||
|
|
||
|
/* setup the libcli early so that modules can use it */
|
||
|
if (!(cli = cli_init())) {
|
||
|
dprintf(1,"wconsd: wconsd_init: failed run cli_init\n");
|
||
|
return 13;
|
||
|
}
|
||
|
modules_init(cli);
|
||
|
|
||
|
/* do_getopt(GETOPT_SCMINIT,argc,argv) */
|
||
|
|
||
|
/* Start up sockets */
|
||
| ... | ... | |
|
return 12;
|
||
|
}
|
||
|
|
||
|
if (!(cli = cli_init())) {
|
||
|
dprintf(1,"wconsd: wconsd_init: failed run cli_init\n");
|
||
|
return 13;
|
||
|
}
|
||
|
cli_set_banner(cli, "wconsd serial to telnet");
|
||
|
cli_set_hostname(cli, (char *)hostname);
|
||
|
cli_set_idle_timeout(cli, 60);
|
||
| ... | ... | |
|
cli_set_enable_callback(cli, check_enable);
|
||
|
#endif
|
||
|
|
||
|
modules_init(cli);
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
Also available in: Unified diff
Move the libcli initialisation to earlier in the init function