From 0b1dc2f93da4c860dd27f1ac997617b712dff383 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Mon, 28 Jan 2013 20:15:01 -0500 Subject: Refactor LDAP DB option parsing code krb5_ldap_open and krb5_ldap_create contain two large, almost identical blocks of DB option processing code. Factor it out into a new function krb5_ldap_parse_db_params in ldap_misc.c, and simplify the factored-out code. Create a helper function to add server entries and use it to simplify krb5_ldap_read_server_params as well as DB option parsing. Since the new DB option helper uses isspace instead of isblank, we no longer require portability goop for isblank. --- src/configure.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/configure.in') diff --git a/src/configure.in b/src/configure.in index c5c599b57b..600cc8d905 100644 --- a/src/configure.in +++ b/src/configure.in @@ -120,7 +120,6 @@ KRB5_NEED_PROTO([#include /* Solaris 8 declares swab in stdlib.h. */ #include ],swab,1) -KRB5_NEED_PROTO([#include ],isblank,1) AC_PROG_AWK KRB5_AC_INET6 @@ -263,7 +262,7 @@ AC_CONFIG_HEADERS(include/autoconf.h, [echo timestamp > include/autoconf.stamp]) AC_PROG_LEX AC_C_CONST AC_HEADER_DIRENT -AC_CHECK_FUNCS(strdup setvbuf seteuid setresuid setreuid setegid setresgid setregid setsid flock fchmod chmod strftime strptime geteuid setenv unsetenv getenv gmtime_r localtime_r bswap16 bswap64 mkstemp getusershell access getcwd srand48 srand srandom stat strchr strerror strerror_r timegm isblank) +AC_CHECK_FUNCS(strdup setvbuf seteuid setresuid setreuid setegid setresgid setregid setsid flock fchmod chmod strftime strptime geteuid setenv unsetenv getenv gmtime_r localtime_r bswap16 bswap64 mkstemp getusershell access getcwd srand48 srand srandom stat strchr strerror strerror_r timegm) AC_CHECK_FUNC(mkstemp, [MKSTEMP_ST_OBJ= -- cgit