diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2011-03-17 22:02:45 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2011-03-17 22:02:45 +0100 |
commit | 2927aaa0b3796443821fff5b9043faafe2ffd542 (patch) | |
tree | 51a473df88935b47d0d02acf9b3a18db835517c3 /tests/test_common.c | |
parent | 6e8eef9c1636bfbeeed1a46c4af8221f285c6a90 (diff) |
put all assertion functions and compatibility code into one header file
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1397 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'tests/test_common.c')
-rw-r--r-- | tests/test_common.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/tests/test_common.c b/tests/test_common.c index 4831815..092867b 100644 --- a/tests/test_common.c +++ b/tests/test_common.c @@ -2,7 +2,7 @@ test_common.c - simple test for the common module This file is part of the nss-pam-ldapd library. - Copyright (C) 2008, 2009 Arthur de Jong + Copyright (C) 2008, 2009, 2011 Arthur de Jong This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -27,15 +27,6 @@ #include "nslcd/common.h" -/* this is a simple way to get this into an executable */ -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 NULL;} -const char **attmap_get_var(int UNUSED(map),const char UNUSED(*name)) {return NULL;} -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;} - static void test_isvalidname(void) { assert(isvalidname("arthur")); |