]> git.meshlink.io Git - meshlink/blobdiff - src/tincd.c
Move debug_level to mesh.
[meshlink] / src / tincd.c
index 6ff347deb3020fa4d08aaf1917472e2d7591107f..7d580cf270c27def2aa84101f80fcce668f466f6 100644 (file)
@@ -112,9 +112,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 +147,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;