]> git.meshlink.io Git - meshlink/blobdiff - src/protocol.c
Fix sparse warnings and add an extra sprinkling of const.
[meshlink] / src / protocol.c
index f09aff65b7aeaaea6480abbafe8a2adc3e4cd06a..5de30d7d6ce0123b588a6c0bdcd708f88b796fa7 100644 (file)
@@ -29,6 +29,7 @@
 #include "xalloc.h"
 
 bool tunnelserver = false;
+bool strictsubnets = false;
 
 /* Jumptable for the request handlers */
 
@@ -188,7 +189,7 @@ void exit_requests(void) {
 }
 
 bool seen_request(char *request) {
-       past_request_t *new, p = {0};
+       past_request_t *new, p = {NULL};
 
        p.request = request;