From c0a0028c43e3719ae033c6f9d82547fbf861f151 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Wed, 4 Aug 1999 05:53:50 +0000 Subject: [PATCH] Align somewhat with ldif2ldbm: Obey HAVE_SYS_PARAM_H, cast strcasecmp to AVL_CMP --- servers/slapd/tools/ldif2ldbm-bdb2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 { -- 2.39.5