Add sudo_ prefix to alloc.c functions and rename alloc.h -> sudo_alloc.h
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
#endif /* STDC_HEADERS */
|
||||
|
||||
#include "missing.h"
|
||||
#include "alloc.h"
|
||||
#include "sudo_alloc.h"
|
||||
#include "sudo_debug.h"
|
||||
#include "redblack.h"
|
||||
|
||||
@@ -92,7 +92,7 @@ rbcreate(int (*compar)(const void *, const void*))
|
||||
struct rbtree *tree;
|
||||
debug_decl(rbcreate, SUDO_DEBUG_RBTREE)
|
||||
|
||||
tree = (struct rbtree *) emalloc(sizeof(*tree));
|
||||
tree = (struct rbtree *) sudo_emalloc(sizeof(*tree));
|
||||
tree->compar = compar;
|
||||
|
||||
/*
|
||||
@@ -187,7 +187,7 @@ rbinsert(struct rbtree *tree, void *data)
|
||||
node = res < 0 ? node->left : node->right;
|
||||
}
|
||||
|
||||
node = (struct rbnode *) emalloc(sizeof(*node));
|
||||
node = (struct rbnode *) sudo_emalloc(sizeof(*node));
|
||||
node->data = data;
|
||||
node->left = node->right = rbnil(tree);
|
||||
node->parent = parent;
|
||||
|
Reference in New Issue
Block a user