X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnode.c;h=dbc5a7eb32152135c1357115814b50fc51e02844;hb=434e57ae5ee79b3d990c4d75358047bad641998b;hp=3ec9fab1f7f1d70c97ce01be14f558ec7fdb2fc9;hpb=8ddcad5fa1908727f68abb461b615c666616064f;p=tinc diff --git a/src/node.c b/src/node.c index 3ec9fab1..dbc5a7eb 100644 --- a/src/node.c +++ b/src/node.c @@ -126,7 +126,7 @@ void node_del(node_t *n) { } node_t *lookup_node(char *name) { - node_t n = {0}; + node_t n = {NULL}; n.name = name; @@ -134,7 +134,7 @@ node_t *lookup_node(char *name) { } node_t *lookup_node_udp(const sockaddr_t *sa) { - node_t n = {0}; + node_t n = {NULL}; n.address = *sa; n.name = NULL; @@ -144,7 +144,7 @@ node_t *lookup_node_udp(const sockaddr_t *sa) { void update_node_udp(node_t *n, const sockaddr_t *sa) { if(n == myself) { - logger(LOG_WARNING, "Trying to update UDP address of myself!\n"); + logger(LOG_WARNING, "Trying to update UDP address of myself!"); return; } @@ -160,7 +160,7 @@ void update_node_udp(node_t *n, const sockaddr_t *sa) { logger(LOG_DEBUG, "UDP address of %s set to %s", n->name, n->hostname); } else { memset(&n->address, 0, sizeof n->address); - n->hostname = 0; + n->hostname = NULL; ifdebug(PROTOCOL) logger(LOG_DEBUG, "UDP address of %s cleared", n->name); } }