From 2927aaa0b3796443821fff5b9043faafe2ffd542 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Thu, 17 Mar 2011 21:02:45 +0000 Subject: 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 --- tests/test_common.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'tests/test_common.c') 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")); -- cgit v1.2.3