1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
--- ./util/neo_hash.c.orig 2006-10-19 01:57:24.000000000 +0200
+++ ./util/neo_hash.c 2012-04-23 17:56:07.096509854 +0200
@@ -27,7 +27,7 @@
my_hash = (NE_HASH *) calloc(1, sizeof(NE_HASH));
if (my_hash == NULL)
- return nerr_raise(NERR_NOMEM, "Unable to allocate memory for NE_HASH");
+ return nerr_raise(NERR_NOMEM, "%s", "Unable to allocate memory for NE_HASH");
my_hash->size = 256;
my_hash->num = 0;
@@ -38,7 +38,7 @@
if (my_hash->nodes == NULL)
{
free(my_hash);
- return nerr_raise(NERR_NOMEM, "Unable to allocate memory for NE_HASHNODES");
+ return nerr_raise(NERR_NOMEM, "%s", "Unable to allocate memory for NE_HASHNODES");
}
*hash = my_hash;
@@ -88,7 +88,7 @@
{
*node = (NE_HASHNODE *) malloc(sizeof(NE_HASHNODE));
if (node == NULL)
- return nerr_raise(NERR_NOMEM, "Unable to allocate NE_HASHNODE");
+ return nerr_raise(NERR_NOMEM, "%s", "Unable to allocate NE_HASHNODE");
(*node)->hashv = hashv;
(*node)->key = key;
@@ -226,7 +226,7 @@
/* We always double in size */
new_nodes = (NE_HASHNODE **) realloc (hash->nodes, (hash->size*2) * sizeof(NE_HASHNODE));
if (new_nodes == NULL)
- return nerr_raise(NERR_NOMEM, "Unable to allocate memory to resize NE_HASH");
+ return nerr_raise(NERR_NOMEM, "%s", "Unable to allocate memory to resize NE_HASH");
hash->nodes = new_nodes;
orig_size = hash->size;
|