From: Luke Leighton Date: Tue, 8 Dec 1998 00:30:23 +0000 (+0000) Subject: compilation warnings due to missing (void) in ldap_close_connection. X-Git-Tag: samba-2.2.5pre1~4892 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f11eb4165836ce8d15a453d37c4e07913562d778;p=thirdparty%2Fsamba.git compilation warnings due to missing (void) in ldap_close_connection. --- diff --git a/source/include/proto.h b/source/include/proto.h index f237c08999b..ae77d053ea8 100644 --- a/source/include/proto.h +++ b/source/include/proto.h @@ -1373,7 +1373,7 @@ BOOL pm_process( char *FileName, /*The following definitions come from passdb/ldap.c */ BOOL ldap_open_connection(BOOL modify); -void ldap_close_connection(); +void ldap_close_connection(void); BOOL ldap_search_for(char *filter); BOOL ldap_search_by_name(const char *user); BOOL ldap_search_by_uid(int uid); diff --git a/source/passdb/ldap.c b/source/passdb/ldap.c index 2494cdecf85..f3285f525d1 100644 --- a/source/passdb/ldap.c +++ b/source/passdb/ldap.c @@ -40,7 +40,7 @@ static pstring ldap_secret; /******************************************************************* - Open/close connections to the LDAP server. + Open connections to the LDAP server. ******************************************************************/ BOOL ldap_open_connection(BOOL modify) @@ -62,7 +62,11 @@ BOOL ldap_open_connection(BOOL modify) return (True); } -void ldap_close_connection() +/******************************************************************* + close connections to the LDAP server. + ******************************************************************/ + +void ldap_close_connection(void) { if(!ldap_struct) return;