From c32792b4896cd349a8333f693240e59595e1159d Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 12 Nov 1998 20:17:01 +0000 Subject: [PATCH] Include ldif.h to pickup declaration of str_getline() Fix pointer truncation to int by including prototypes in forward declarations. --- servers/slapd/tools/ldif2id2children.c | 5 +---- servers/slapd/tools/ldif2index.c | 2 +- servers/slapd/tools/ldif2ldbm.c | 10 ++++------ 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/servers/slapd/tools/ldif2id2children.c b/servers/slapd/tools/ldif2id2children.c index 67be503f64..ee128855a8 100644 --- a/servers/slapd/tools/ldif2id2children.c +++ b/servers/slapd/tools/ldif2id2children.c @@ -9,15 +9,14 @@ #include "../back-ldbm/back-ldbm.h" #include "ldapconfig.h" +#include "ldif.h" #define MAXARGS 100 extern struct dbcache *ldbm_cache_open(); extern void attr_index_config(); -extern char *str_getline(); extern char *dn_parent(); extern char *dn_normalize_case(); -extern int strcasecmp(); extern int nbackends; extern Backend *backends; extern int ldap_debug; @@ -43,8 +42,6 @@ pthread_mutex_t replog_mutex; pthread_mutex_t ops_mutex; pthread_mutex_t regex_mutex; -static int make_index(); - static char *tailorfile; static char *inputfile; diff --git a/servers/slapd/tools/ldif2index.c b/servers/slapd/tools/ldif2index.c index 2e4ba0c439..9995dea664 100644 --- a/servers/slapd/tools/ldif2index.c +++ b/servers/slapd/tools/ldif2index.c @@ -8,11 +8,11 @@ #include "../slap.h" #include "ldapconfig.h" +#include "ldif.h" #define MAXARGS 100 extern void attr_index_config(); -extern char *str_getline(); extern char *attr_normalize(); extern int nbackends; extern Backend *backends; diff --git a/servers/slapd/tools/ldif2ldbm.c b/servers/slapd/tools/ldif2ldbm.c index d1da293c09..01ae4fbd21 100644 --- a/servers/slapd/tools/ldif2ldbm.c +++ b/servers/slapd/tools/ldif2ldbm.c @@ -10,17 +10,15 @@ #include "../slap.h" #include "../back-ldbm/back-ldbm.h" #include "ldapconfig.h" +#include "ldif.h" #define INDEXCMD "ldif2index" #define ID2ENTRYCMD "ldif2id2entry" #define ID2CHILDRENCMD "ldif2id2children" #define MAXARGS 100 -extern void attr_index_config(); -extern char *str_getline(); -extern int strcasecmp(); extern int nbackends; -extern Backend *backends; +extern Backend *backends; extern int ldap_debug; int ldap_debug; @@ -43,8 +41,8 @@ pthread_mutex_t replog_mutex; pthread_mutex_t ops_mutex; pthread_mutex_t regex_mutex; -static void fork_child(); -static void wait4kids(); +static void fork_child( char *prog, char *args[] ); +static void wait4kids( int nkidval ); static char *indexcmd; static char *tailorfile; -- 2.39.5