Skip to content
Snippets Groups Projects
Commit c32792b4 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Include ldif.h to pickup declaration of str_getline()

Fix pointer truncation to int by including prototypes in forward declarations.
parent f1fde41f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
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