From e9b8a7693dce4d7be959c6a9f4112014884e647c Mon Sep 17 00:00:00 2001 From: Pang Yan Han Date: Mon, 22 Aug 2011 13:00:33 +0800 Subject: pacsort: correct pointer type in list_new Pointer sizes are the same but this makes intention clearer. Signed-off-by: Pang Yan Han Signed-off-by: Dan McGee --- src/util/pacsort.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/pacsort.c b/src/util/pacsort.c index 109d1a16..082ba728 100644 --- a/src/util/pacsort.c +++ b/src/util/pacsort.c @@ -103,7 +103,7 @@ static struct list_t *list_new(size_t initial_size) return NULL; } - list->list = calloc(initial_size, sizeof(char **)); + list->list = calloc(initial_size, sizeof(char *)); if(!list->list) { free(list); return NULL; @@ -117,7 +117,7 @@ static struct list_t *list_new(size_t initial_size) static int list_grow(struct list_t *list) { size_t newsz = list->maxcount * 2.5; - list->list = realloc(list->list, newsz * sizeof(char*)); + list->list = realloc(list->list, newsz * sizeof(char *)); if(!list->list) { return 1; } -- cgit v1.2.3-70-g09d2