]> git.meshlink.io Git - meshlink/blobdiff - src/subnet.c
Rename xmalloc_and_zero() to xzalloc().
[meshlink] / src / subnet.c
index 12ca03c73135d8e6e80596fba7793b02580ac7af..bf4300e4d9ad494a3eaf1054d63e139a324fbb50 100644 (file)
@@ -79,7 +79,7 @@ void free_subnet_tree(splay_tree_t *subnet_tree) {
 /* Allocating and freeing space for subnets */
 
 subnet_t *new_subnet(void) {
-       return xmalloc_and_zero(sizeof(subnet_t));
+       return xzalloc(sizeof(subnet_t));
 }
 
 void free_subnet(subnet_t *subnet) {