X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=apps%2Fsilcd%2Fsilcd.c;h=e740fd1bf27ddeb50dd9c6bcaadf5a611fd96110;hp=ace7c3ce463709c3689ebf491816a67eae593584;hb=d724e6e0616bad77bdcd83ed08a3f20daf5660b2;hpb=bd2c9343055303a5517a33401f57a0414639a953 diff --git a/apps/silcd/silcd.c b/apps/silcd/silcd.c index ace7c3ce..e740fd1b 100644 --- a/apps/silcd/silcd.c +++ b/apps/silcd/silcd.c @@ -126,15 +126,12 @@ static void silc_checkpid(SilcServer silcd) int main(int argc, char **argv) { - int ret; - int opt, option_index; - int foreground = FALSE; + int ret, opt, option_index; char *config_file = NULL; + bool foreground = FALSE; SilcServer silcd; struct sigaction sa; - silc_debug = FALSE; - /* Parse command line arguments */ if (argc > 1) { while ((opt = getopt_long(argc, argv, "cf:d:hFVC:", @@ -153,11 +150,13 @@ int main(int argc, char **argv) exit(0); break; case 'd': +#ifdef SILC_DEBUG silc_debug = TRUE; silc_debug_hexdump = TRUE; silc_log_set_debug_string(optarg); foreground = TRUE; -#ifndef SILC_DEBUG + silc_log_quick = TRUE; +#else fprintf(stdout, "Run-time debugging is not enabled. To enable it recompile\n" "the server with --enable-debug configuration option.\n");