From 5a32ff060378a70dff4e0e509cfaa86b5ecad8f2 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 11 Oct 2000 23:42:53 +0000 Subject: [PATCH] Add missing 'static'... (ITS#823,825,828) as reported by Jeff Earickson other suggestions to be separately reviewed --- clients/tools/ldapsearch.c | 4 +++- libraries/libldap/tmpltest.c | 4 ++-- servers/slapd/back-ldbm/alias.c | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index 0b31d500cf..13a786b248 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -1291,7 +1291,9 @@ static int print_result( return err; } -void print_ctrls( LDAPControl **ctrls ) { +static void print_ctrls( + LDAPControl **ctrls ) +{ int i; for(i=0; ctrls[i] != NULL; i++ ) { /* control: OID criticality base64value */ diff --git a/libraries/libldap/tmpltest.c b/libraries/libldap/tmpltest.c index 728724690d..711884d9ac 100644 --- a/libraries/libldap/tmpltest.c +++ b/libraries/libldap/tmpltest.c @@ -108,7 +108,7 @@ static const unsigned long item_opt_vals[] = { }; -void +static void dump_tmpl( struct ldap_disptmpl *tmpl ) { struct ldap_tmplitem *rowp, *colp; @@ -226,7 +226,7 @@ dump_tmpl( struct ldap_disptmpl *tmpl ) } -void +static void dump_srchpref( struct ldap_searchobj *so ) { int i; diff --git a/servers/slapd/back-ldbm/alias.c b/servers/slapd/back-ldbm/alias.c index bab9105a8e..f04428ad14 100644 --- a/servers/slapd/back-ldbm/alias.c +++ b/servers/slapd/back-ldbm/alias.c @@ -264,7 +264,7 @@ static char* get_alias_dn( return dn; } -char* new_superior( +static char* new_superior( const char *dn, const char *oldSup, const char *newSup ) -- 2.39.5