]> git.sur5r.net Git - openldap/commitdiff
Replace some calloc/realloc with ch_calloc/ch_realloc for consistency.
authorHoward Chu <hyc@openldap.org>
Wed, 26 Sep 2001 23:42:53 +0000 (23:42 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 26 Sep 2001 23:42:53 +0000 (23:42 +0000)
servers/slapd/at.c

index 4859040aea85865a111f6ba51b1d72a6e8eb0342..5c3cad15c5667774beca4a5a53645227f2d5bb0a 100644 (file)
@@ -95,7 +95,7 @@ at_append_to_list(
        list = *listp;
        if ( !list ) {
                size = 2;
-               list = calloc(size, sizeof(AttributeType *));
+               list = ch_calloc(size, sizeof(AttributeType *));
                if ( !list ) {
                        return -1;
                }
@@ -107,7 +107,7 @@ at_append_to_list(
                        list1++;
                }
                size += 2;
-               list1 = realloc(list, size*sizeof(AttributeType *));
+               list1 = ch_realloc(list, size*sizeof(AttributeType *));
                if ( !list1 ) {
                        return -1;
                }
@@ -144,7 +144,7 @@ at_delete_from_list(
        }
        list[i] = NULL;
        /* Tell the runtime this can be shrinked */
-       list1 = realloc(list, (i+1)*sizeof(AttributeType **));
+       list1 = ch_realloc(list, (i+1)*sizeof(AttributeType **));
        if ( !list1 ) {
                return -1;
        }