Skip to content
Snippets Groups Projects
Commit c0a0028c authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

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

parent 48b63d4f
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment