From ebbc0bb29d240f3d3f916d836e54d1a76ecfa5d1 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 17 May 2011 10:12:27 +0200 Subject: Remove append_attrs_to_array This function was not used anywhere --- src/providers/ldap/sdap.c | 11 ----------- src/providers/ldap/sdap.h | 1 - 2 files changed, 12 deletions(-) (limited to 'src') diff --git a/src/providers/ldap/sdap.c b/src/providers/ldap/sdap.c index b2d3e8c78..e82720929 100644 --- a/src/providers/ldap/sdap.c +++ b/src/providers/ldap/sdap.c @@ -742,17 +742,6 @@ int build_attrs_from_map(TALLOC_CTX *memctx, return EOK; } -int append_attrs_to_array(const char **attrs, size_t size, const char *attr) -{ - attrs = talloc_realloc(NULL, attrs, const char *, size + 2); - if (!attrs) return ENOMEM; - - attrs[size] = attr; - attrs[size + 1] = NULL; - - return EOK; -} - int sdap_control_create(struct sdap_handle *sh, const char *oid, int iscritical, struct berval *value, int dupval, LDAPControl **ctrlp) { diff --git a/src/providers/ldap/sdap.h b/src/providers/ldap/sdap.h index 0f6b75504..c00b3d3e6 100644 --- a/src/providers/ldap/sdap.h +++ b/src/providers/ldap/sdap.h @@ -346,7 +346,6 @@ bool sdap_check_sup_list(struct sup_list *l, const char *val); int build_attrs_from_map(TALLOC_CTX *memctx, struct sdap_attr_map *map, size_t size, const char ***_attrs); -int append_attrs_to_array(const char **attrs, size_t size, const char *attr); int sdap_control_create(struct sdap_handle *sh, const char *oid, int iscritical, struct berval *value, int dupval, LDAPControl **ctrlp); -- cgit