From: Hallvard Furuseth Date: Wed, 4 Aug 1999 05:53:50 +0000 (+0000) Subject: Align somewhat with ldif2ldbm: Obey HAVE_SYS_PARAM_H, cast strcasecmp to AVL_CMP X-Git-Tag: TWEB_OL_BASE~294 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c0a0028c43e3719ae033c6f9d82547fbf861f151;p=openldap Align somewhat with ldif2ldbm: Obey HAVE_SYS_PARAM_H, cast strcasecmp to AVL_CMP --- diff --git a/servers/slapd/tools/ldif2ldbm-bdb2.c b/servers/slapd/tools/ldif2ldbm-bdb2.c index 1cafdcf730..d70391c1a0 100644 --- a/servers/slapd/tools/ldif2ldbm-bdb2.c +++ b/servers/slapd/tools/ldif2ldbm-bdb2.c @@ -8,7 +8,9 @@ #include #include +#ifdef HAVE_SYS_PARAM_H #include +#endif #include "ldif2common.h" #include "../back-bdb2/back-bdb2.h" @@ -165,7 +167,7 @@ main( int argc, char **argv ) continue; type = strdup( type ); - if ( avl_insert( &avltypes, type, strcasecmp, + if ( avl_insert( &avltypes, type, (AVL_CMP) strcasecmp, avl_dup_error ) != 0 ) { free( type ); } else {