mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 13:40:37 -05:00
Align somewhat with ldif2ldbm: Obey HAVE_SYS_PARAM_H, cast strcasecmp to AVL_CMP
This commit is contained in:
parent
48b63d4f16
commit
c0a0028c43
1 changed files with 3 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue