diff options
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/mysqlpass.c | 6 | ||||
-rw-r--r-- | source3/passdb/mysqlsampass.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/source3/passdb/mysqlpass.c b/source3/passdb/mysqlpass.c index c27cf708a6..35c82651b7 100644 --- a/source3/passdb/mysqlpass.c +++ b/source3/passdb/mysqlpass.c @@ -392,7 +392,7 @@ struct smb_passwd *mysql_getsmbpwent(void *vp) return (struct smb_passwd*)mysql_fill_smb_passwd( mysql_getpwent(vp) ); } -void *mysql_fetch_passwd( mysql_fill_func filler, char *where ) +void *mysql_fetch_passwd( void *(*filler)(MYSQL_ROW*), char *where ) { void *retval; MYSQL handle; @@ -442,7 +442,7 @@ void *mysql_fetch_passwd( mysql_fill_func filler, char *where ) return retval; } -void *mysql_getpwuid(mysql_fill_func filler, uid_t uid) +void *mysql_getpwuid(void *(*filler)(MYSQL_ROW *), uid_t uid) { fstring where; @@ -461,7 +461,7 @@ struct smb_passwd *mysql_getsmbpwuid(uid_t uid) return (struct smb_passwd *)mysql_getpwuid( mysql_fill_smb_passwd, uid ); } -void *mysql_getpwnam(mysql_fill_func filler, char *field, const char *name) +void *mysql_getpwnam(void *(*filler)(MYSQL_ROW *), char *field, const char *name) { fstring where; char format[] = "%s='%s'"; diff --git a/source3/passdb/mysqlsampass.c b/source3/passdb/mysqlsampass.c index e39bd61633..4615591bfb 100644 --- a/source3/passdb/mysqlsampass.c +++ b/source3/passdb/mysqlsampass.c @@ -25,6 +25,8 @@ #include "includes.h" +MYSQL_ROW *mysql_getpwent(void *vp); + extern int DEBUGLEVEL; extern pstring samlogon_user; |