summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-12-08 00:30:23 +0000
committerLuke Leighton <lkcl@samba.org>1998-12-08 00:30:23 +0000
commit0125141f8681a837a8f4ee9e66d9f5d2488cb2db (patch)
tree34e89c6d1fc4cee89632634468d4f628200c6b3d
parent8308c000b2022769644ed8ea1fc772776257c99b (diff)
downloadsamba-0125141f8681a837a8f4ee9e66d9f5d2488cb2db.tar.gz
samba-0125141f8681a837a8f4ee9e66d9f5d2488cb2db.tar.bz2
samba-0125141f8681a837a8f4ee9e66d9f5d2488cb2db.zip
compilation warnings due to missing (void) in ldap_close_connection.
(This used to be commit f11eb4165836ce8d15a453d37c4e07913562d778)
-rw-r--r--source3/include/proto.h2
-rw-r--r--source3/passdb/ldap.c8
2 files changed, 7 insertions, 3 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index f237c08999..ae77d053ea 100644
--- a/source3/include/proto.h
+++ b/source3/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/source3/passdb/ldap.c b/source3/passdb/ldap.c
index 2494cdecf8..f3285f525d 100644
--- a/source3/passdb/ldap.c
+++ b/source3/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;