Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/test_myldap.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2011-03-25 17:15:26 +0100
committerArthur de Jong <arthur@arthurdejong.org>2011-03-25 17:15:26 +0100
commit16b5262cf2e593f9d2086806096f73d526873b3c (patch)
tree501902c3e72da4f60bc4a9866d56574eddbc0363 /tests/test_myldap.c
parent3086d518412247138e743cc954d98ec834a4a0c4 (diff)
re-organise tests somewhat making things more consistent
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1413 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'tests/test_myldap.c')
-rw-r--r--tests/test_myldap.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/test_myldap.c b/tests/test_myldap.c
index 6295118..6465538 100644
--- a/tests/test_myldap.c
+++ b/tests/test_myldap.c
@@ -39,18 +39,6 @@ struct worker_args {
int id;
};
-static const char *foo="";
-
-/* this is a simple way to get this into an executable,
- we should probably read a valid config instead */
-const char **base_get_var(int UNUSED(map)) {return NULL;}
-int *scope_get_var(int UNUSED(map)) {return NULL;}
-const char **filter_get_var(int UNUSED(map)) {return &foo;}
-const char **attmap_get_var(int UNUSED(map),const char UNUSED(*name)) {return &foo;}
-const char *attmap_get_value(MYLDAP_ENTRY UNUSED(*entry),const char UNUSED(*attr),char UNUSED(*buffer),size_t UNUSED(buflen)) {return "";}
-void *attmap_add_attributes(void UNUSED(*set),const char UNUSED(*attr)) {return NULL;}
-const char *attmap_set_mapping(const char UNUSED(**var),const char UNUSED(*value)) {return NULL;}
-
/* the maxium number of results to print (all results are retrieved) */
#define MAXRESULTS 10