]> git.sur5r.net Git - openldap/commitdiff
Align somewhat with ldif2ldbm: Obey HAVE_SYS_PARAM_H, cast strcasecmp to AVL_CMP
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 4 Aug 1999 05:53:50 +0000 (05:53 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 4 Aug 1999 05:53:50 +0000 (05:53 +0000)
servers/slapd/tools/ldif2ldbm-bdb2.c

index 1cafdcf73074f40d5f4da5a4dab5eabe505d77dd..d70391c1a0bc6c567a2206a52dc871c006616405 100644 (file)
@@ -8,7 +8,9 @@
 #include <ac/unistd.h>
 #include <ac/wait.h>
 
+#ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>
+#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 {