From b5155616d79c27928e07c6596750dff6d7726564 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 30 Dec 2012 14:13:35 +0000 Subject: reorganise and rename configuration options to be in line with manual page git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1888 ef36b2f9-881f-0410-afb5-c4e39611909c --- tests/test_myldap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/test_myldap.c') diff --git a/tests/test_myldap.c b/tests/test_myldap.c index 69bc2c5..4239082 100644 --- a/tests/test_myldap.c +++ b/tests/test_myldap.c @@ -364,10 +364,10 @@ static void test_connections(void) MYLDAP_SESSION *session; MYLDAP_SEARCH *search; const char *attrs[] = { "uid", "cn", "gid", NULL }; - char *old_uris[NSS_LDAP_CONFIG_URI_MAX + 1]; + char *old_uris[NSS_LDAP_CONFIG_MAX_URIS + 1]; int i; /* save the old URIs */ - for (i = 0; i < (NSS_LDAP_CONFIG_URI_MAX + 1); i++) + for (i = 0; i < (NSS_LDAP_CONFIG_MAX_URIS + 1); i++) { old_uris[i] = nslcd_cfg->uris[i].uri; nslcd_cfg->uris[i].uri = NULL; @@ -391,7 +391,7 @@ static void test_connections(void) /* clean up */ myldap_session_close(session); /* restore the old URIs */ - for (i = 0; i < (NSS_LDAP_CONFIG_URI_MAX + 1); i++) + for (i = 0; i < (NSS_LDAP_CONFIG_MAX_URIS + 1); i++) nslcd_cfg->uris[i].uri = old_uris[i]; } -- cgit v1.2.3