X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fprotocol_subnet.c;h=af31d0641139491d32478c79ca60f37404139b82;hb=1545909dcb3ac618754486f4ccd4d8f237d64bb7;hp=3e82e4737399a14f1b63bb84409996ce912a2fad;hpb=f6e87ab476a0faf8b124ecaaa27f967d825e6457;p=tinc diff --git a/src/protocol_subnet.c b/src/protocol_subnet.c index 3e82e473..af31d064 100644 --- a/src/protocol_subnet.c +++ b/src/protocol_subnet.c @@ -24,8 +24,6 @@ #include "conf.h" #include "connection.h" #include "logger.h" -#include "net.h" -#include "netutl.h" #include "node.h" #include "protocol.h" #include "subnet.h" @@ -46,7 +44,7 @@ bool add_subnet_h(connection_t *c, const char *request) { char subnetstr[MAX_STRING_SIZE]; char name[MAX_STRING_SIZE]; node_t *owner; - subnet_t s = {NULL}, *new, *old; + subnet_t s = {0}, *new, *old; if(sscanf(request, "%*d %*x " MAX_STRING " " MAX_STRING, name, subnetstr) != 2) { logger(DEBUG_ALWAYS, LOG_ERR, "Got bad %s from %s (%s)", "ADD_SUBNET", c->name, @@ -162,7 +160,7 @@ bool del_subnet_h(connection_t *c, const char *request) { char subnetstr[MAX_STRING_SIZE]; char name[MAX_STRING_SIZE]; node_t *owner; - subnet_t s = {NULL}, *find; + subnet_t s = {0}, *find; if(sscanf(request, "%*d %*x " MAX_STRING " " MAX_STRING, name, subnetstr) != 2) { logger(DEBUG_ALWAYS, LOG_ERR, "Got bad %s from %s (%s)", "DEL_SUBNET", c->name,