diff options
Diffstat (limited to 'ubi-utils/dictionary.c')
-rw-r--r-- | ubi-utils/dictionary.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ubi-utils/dictionary.c b/ubi-utils/dictionary.c index b7c9ebf..f4b7468 100644 --- a/ubi-utils/dictionary.c +++ b/ubi-utils/dictionary.c @@ -44,7 +44,7 @@ static void * mem_double(void * ptr, int size) { void * newptr ; - + newptr = calloc(2*size, 1); if (newptr==NULL) { return NULL ; @@ -230,7 +230,7 @@ int dictionary_set(dictionary * d, char * key, char * val) unsigned hash ; if (d==NULL || key==NULL) return -1 ; - + /* Compute hash for this key */ hash = dictionary_hash(key) ; /* Find if value is already in dictionary */ @@ -374,7 +374,7 @@ int main(int argc, char *argv[]) /* Allocate dictionary */ printf("allocating...\n"); d = dictionary_new(0); - + /* Set values in dictionary */ printf("setting %d values...\n", NVALS); for (i=0 ; i<NVALS ; i++) { |