X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Ftincd.c;h=45ff3ff697e51f21059534e271f4969e41b1954b;hb=47de98b27b28e049c47ce29a056d245fb14a2576;hp=6ff347deb3020fa4d08aaf1917472e2d7591107f;hpb=fb7b6e7a0c966a88a682f656ca1caeb9a0583c5b;p=meshlink diff --git a/src/tincd.c b/src/tincd.c index 6ff347de..45ff3ff6 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -51,9 +51,6 @@ static bool show_help = false; /* If nonzero, print the version on standard output and exit. */ static bool show_version = false; -/* If nonzero, use null ciphers and skip all key exchanges. */ -bool bypass_security = false; - char **g_argv; /* a copy of the cmdline arguments */ static int status = 1; @@ -112,9 +109,9 @@ static bool parse_options(int argc, char **argv) { if(!optarg && optind < argc && *argv[optind] != '-') optarg = argv[optind++]; if(optarg) - debug_level = atoi(optarg); + mesh->debug_level = atoi(optarg); else - debug_level++; + mesh->debug_level++; break; case 1: /* show help */ @@ -147,7 +144,7 @@ static bool parse_options(int argc, char **argv) { return true; } -int main(int argc, char **argv) { +int old_main(int argc, char **argv) { if(!parse_options(argc, argv)) return 1;