summaryrefslogtreecommitdiff
path: root/source3/lib/username.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-04-13 19:24:06 +0000
committerJeremy Allison <jra@samba.org>1998-04-13 19:24:06 +0000
commitcac6a060af598bf94e6414b06e7365ec51ca360e (patch)
tree45249e753e580c2d2cb670db1d24ee41701c5285 /source3/lib/username.c
parent47ec2e09b7e1b29e41862916a27f189ba6552582 (diff)
downloadsamba-cac6a060af598bf94e6414b06e7365ec51ca360e.tar.gz
samba-cac6a060af598bf94e6414b06e7365ec51ca360e.tar.bz2
samba-cac6a060af598bf94e6414b06e7365ec51ca360e.zip
Changes to allow Samba to be compiled with -Wstrict-prototypes
with gcc. (Not a big change although it looks like it :-). Jeremy. (This used to be commit cd2613c57261456485fe4eeecfda209ada70de8e)
Diffstat (limited to 'source3/lib/username.c')
-rw-r--r--source3/lib/username.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/username.c b/source3/lib/username.c
index 751b0e5336..6c65d5d8cb 100644
--- a/source3/lib/username.c
+++ b/source3/lib/username.c
@@ -23,8 +23,8 @@
extern int DEBUGLEVEL;
/* internal functions - modified versions of the ones in password.c */
-static struct passwd *uname_string_combinations(char *s, struct passwd * (*fn) (), int N);
-static struct passwd *uname_string_combinations2(char *s, int offset, struct passwd * (*fn) (), int N);
+static struct passwd *uname_string_combinations(char *s, struct passwd * (*fn) (char *), int N);
+static struct passwd *uname_string_combinations2(char *s, int offset, struct passwd * (*fn) (char *), int N);
/****************************************************************************
get a users home directory. tries as-is then lower case
@@ -288,7 +288,7 @@ try all combinations with N uppercase letters.
offset is the first char to try and change (start with 0)
it assumes the string starts lowercased
****************************************************************************/
-static struct passwd *uname_string_combinations2(char *s,int offset,struct passwd *(*fn)(),int N)
+static struct passwd *uname_string_combinations2(char *s,int offset,struct passwd *(*fn)(char *),int N)
{
int len = strlen(s);
int i;
@@ -322,7 +322,7 @@ try all combinations with up to N uppercase letters.
offset is the first char to try and change (start with 0)
it assumes the string starts lowercased
****************************************************************************/
-static struct passwd * uname_string_combinations(char *s,struct passwd * (*fn)(),int N)
+static struct passwd * uname_string_combinations(char *s,struct passwd * (*fn)(char *),int N)
{
int n;
struct passwd *ret;