summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/include/proto.h2
-rw-r--r--source3/passdb/ldap.c5
2 files changed, 3 insertions, 4 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index ae77d053ea..0c4b25a21f 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1378,7 +1378,7 @@ BOOL ldap_search_for(char *filter);
BOOL ldap_search_by_name(const char *user);
BOOL ldap_search_by_uid(int uid);
BOOL ldap_get_attribute(char *attribute, char *value);
-struct smb_passwd *ldap_getpw();
+struct smb_passwd *ldap_getpw(void);
struct smb_passdb_ops *ldap_initialise_password_db(void);
/*The following definitions come from passdb/nispass.c */
diff --git a/source3/passdb/ldap.c b/source3/passdb/ldap.c
index f3285f525d..49f7e1d13a 100644
--- a/source3/passdb/ldap.c
+++ b/source3/passdb/ldap.c
@@ -145,10 +145,9 @@ BOOL ldap_get_attribute(char *attribute, char *value)
/*******************************************************************
- Contruct an smb_passwd structure
+ Construct an smb_passwd structure
******************************************************************/
-
-struct smb_passwd *ldap_getpw()
+struct smb_passwd *ldap_getpw(void)
{
static struct smb_passwd smbpw;
static pstring unix_name;