From: Hallvard Furuseth Date: Mon, 18 Jul 2005 05:14:41 +0000 (+0000) Subject: Add missing "static" for functions declared static but defined non-static X-Git-Tag: OPENLDAP_AC_BP~370 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f43a823c731fe1739a1cb89ad8fea7820e953aac;p=openldap Add missing "static" for functions declared static but defined non-static --- diff --git a/libraries/libldap/getdn.c b/libraries/libldap/getdn.c index ca45d8247f..79c49e0470 100644 --- a/libraries/libldap/getdn.c +++ b/libraries/libldap/getdn.c @@ -557,7 +557,7 @@ ldap_dn_normalize( LDAP_CONST char *dnin, * LDAPAVA helpers (will become part of the API for operations * on structural representations of DNs). */ -LDAPAVA * +static LDAPAVA * ldapava_new( const struct berval *attr, const struct berval *val, unsigned flags, void *ctx ) { diff --git a/servers/slapd/controls.c b/servers/slapd/controls.c index 7f14f1fd62..81ae77143a 100644 --- a/servers/slapd/controls.c +++ b/servers/slapd/controls.c @@ -1192,7 +1192,7 @@ static int parsePostRead ( return LDAP_SUCCESS; } -int parseValuesReturnFilter ( +static int parseValuesReturnFilter ( Operation *op, SlapReply *rs, LDAPControl *ctrl ) diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 608e07e5f1..161de6edb5 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -2063,7 +2063,7 @@ int slapd_daemon( void ) } -int sockinit(void) +static int sockinit(void) { #if defined( HAVE_WINSOCK2 ) WORD wVersionRequested; @@ -2104,7 +2104,7 @@ int sockinit(void) return 0; } -int sockdestroy(void) +static int sockdestroy(void) { #if defined( HAVE_WINSOCK2 ) || defined( HAVE_WINSOCK ) WSACleanup(); diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index f2f56a5e85..6c23bc9cbf 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -1022,7 +1022,7 @@ do_syncrepl( return NULL; } -int +static int syncrepl_message_to_entry( syncinfo_t *si, Operation *op, @@ -1193,7 +1193,7 @@ typedef struct dninfo { AttributeDescription **ads; } dninfo; -int +static int syncrepl_entry( syncinfo_t* si, Operation *op, @@ -1858,7 +1858,7 @@ syncrepl_add_glue( return; } -void +static void syncrepl_updateCookie( syncinfo_t *si, Operation *op, @@ -2072,7 +2072,7 @@ null_callback( return LDAP_SUCCESS; } -struct berval * +static struct berval * slap_uuidstr_from_normalized( struct berval* uuidstr, struct berval* normalized,