]> git.ipfire.org Git - thirdparty/bird.git/blobdiff - client/commands.c
We don't need bvsnprintf() in BIRD client
[thirdparty/bird.git] / client / commands.c
index 226ae048b4c66619b3dfc46346ad3595142c8ddd..2dae23e1e30a129a17eefcbe3e74e8d8333f67ea 100644 (file)
@@ -60,7 +60,7 @@ cmd_build_tree(void)
          if (!new)
            {
              int size = sizeof(struct cmd_node) + c-d;
-             new = xmalloc(size);
+             new = malloc(size);
              bzero(new, size);
              *old->plastson = new;
              old->plastson = &new->sibling;
@@ -314,7 +314,7 @@ cmd_expand(char *cmd)
       puts("No such command. Press `?' for help.");
       return NULL;
     }
-  b = xmalloc(strlen(n->cmd->command) + strlen(args) + 1);
+  b = malloc(strlen(n->cmd->command) + strlen(args) + 1);
   sprintf(b, "%s%s", n->cmd->command, args);
   return b;
 }