From: Howard Chu Date: Thu, 19 Aug 1999 23:44:53 +0000 (+0000) Subject: Fix warnings from previous OID parse commit X-Git-Tag: TWEB_OL_BASE~144 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=95d9fe1046e45f7ccd61f2900fbf118371e22221;p=openldap Fix warnings from previous OID parse commit --- diff --git a/servers/slapd/proto-slap.h b/servers/slapd/proto-slap.h index e4234c7cef..a8dfa588e2 100644 --- a/servers/slapd/proto-slap.h +++ b/servers/slapd/proto-slap.h @@ -256,7 +256,8 @@ int lock_fclose LDAP_P(( FILE *fp, FILE *lfp )); */ #ifdef SLAPD_MODULES -int load_module LDAP_P(( const char* file_name, int argc, char *argv[] )); +int module_load LDAP_P(( const char* file_name, int argc, char *argv[] )); +int module_path LDAP_P(( const char* path )); #endif /* SLAPD_MODULES */ /* @@ -376,6 +377,7 @@ int is_entry_objectclass LDAP_P(( Entry *, char* objectclass )); void parse_oc_old LDAP_P(( Backend *be, char *fname, int lineno, int argc, char **argv )); void parse_oc LDAP_P(( char *fname, int lineno, char *line, char **argv )); void parse_at LDAP_P(( char *fname, int lineno, char *line, char **argv )); +void parse_oidm LDAP_P(( char *fname, int lineno, int argc, char **argv )); char *scherr2str LDAP_P((int code)); int dscompare LDAP_P(( char *s1, char *s2del, char delim )); /* diff --git a/servers/slapd/schema.c b/servers/slapd/schema.c index b26fd9004e..b14680fda0 100644 --- a/servers/slapd/schema.c +++ b/servers/slapd/schema.c @@ -565,7 +565,7 @@ syn_find_desc( const char *syndesc, int *len ) Syntax *synp; for (synp = syn_list; synp; synp = synp->ssyn_next) - if ((*len = dscompare( synp->ssyn_syn.syn_desc, syndesc, '{'))) + if ((*len = dscompare( synp->ssyn_syn.syn_desc, (char *)syndesc, '{'))) return synp; return( NULL ); } diff --git a/servers/slapd/schemaparse.c b/servers/slapd/schemaparse.c index 13f3f6e36f..a2e3514a41 100644 --- a/servers/slapd/schemaparse.c +++ b/servers/slapd/schemaparse.c @@ -8,6 +8,7 @@ #include +#include #include #include