summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-05-17 10:12:27 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-05-20 05:42:00 -0400
commitebbc0bb29d240f3d3f916d836e54d1a76ecfa5d1 (patch)
tree7f2ecb44813cb7b716aaca8004ee9d2162b6061d
parent307466d34a32324f1aebb0720f8fd98f9dfd4a9d (diff)
downloadsssd-ebbc0bb29d240f3d3f916d836e54d1a76ecfa5d1.tar.gz
sssd-ebbc0bb29d240f3d3f916d836e54d1a76ecfa5d1.tar.bz2
sssd-ebbc0bb29d240f3d3f916d836e54d1a76ecfa5d1.zip
Remove append_attrs_to_array
This function was not used anywhere
-rw-r--r--src/providers/ldap/sdap.c11
-rw-r--r--src/providers/ldap/sdap.h1
2 files changed, 0 insertions, 12 deletions
diff --git a/src/providers/ldap/sdap.c b/src/providers/ldap/sdap.c
index b2d3e8c7..e8272092 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 0f6b7550..c00b3d3e 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);