Align somewhat with ldif2ldbm: Obey HAVE_SYS_PARAM_H, cast strcasecmp to AVL_CMP

This commit is contained in:
Hallvard Furuseth 1999-08-04 05:53:50 +00:00
parent 48b63d4f16
commit c0a0028c43

View 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 {