(mu_auth_fp, mu_auth_runlist): Changed prototypes.
Showing
1 changed file
with
8 additions
and
7 deletions
... | @@ -20,11 +20,6 @@ | ... | @@ -20,11 +20,6 @@ |
20 | 20 | ||
21 | #include <mailutils/types.h> | 21 | #include <mailutils/types.h> |
22 | 22 | ||
23 | typedef int (*mu_auth_fp) __P((void *return_data, | ||
24 | void *key, | ||
25 | void *func_data, | ||
26 | void *call_data)); | ||
27 | |||
28 | struct mu_auth_data { | 23 | struct mu_auth_data { |
29 | /* These are from struct passwd */ | 24 | /* These are from struct passwd */ |
30 | char *name; /* user name */ | 25 | char *name; /* user name */ |
... | @@ -39,6 +34,11 @@ struct mu_auth_data { | ... | @@ -39,6 +34,11 @@ struct mu_auth_data { |
39 | int change_uid; | 34 | int change_uid; |
40 | }; | 35 | }; |
41 | 36 | ||
37 | typedef int (*mu_auth_fp) __P((struct mu_auth_data **data, | ||
38 | void *key, | ||
39 | void *func_data, | ||
40 | void *call_data)); | ||
41 | |||
42 | struct mu_auth_module { | 42 | struct mu_auth_module { |
43 | char *name; | 43 | char *name; |
44 | struct argp *argp; | 44 | struct argp *argp; |
... | @@ -50,7 +50,8 @@ struct mu_auth_module { | ... | @@ -50,7 +50,8 @@ struct mu_auth_module { |
50 | void *auth_by_uid_data; | 50 | void *auth_by_uid_data; |
51 | }; | 51 | }; |
52 | 52 | ||
53 | extern int mu_auth_runlist __P((list_t flist, void *return_data, | 53 | extern int mu_auth_runlist __P((list_t flist, |
54 | struct mu_auth_data **return_data, | ||
54 | void *key, void *data)); | 55 | void *key, void *data)); |
55 | extern struct mu_auth_data * | 56 | extern struct mu_auth_data * |
56 | mu_get_auth_by_name __P ((const char *username)); | 57 | mu_get_auth_by_name __P ((const char *username)); |
... | @@ -61,7 +62,7 @@ mu_get_auth_by_uid __P((uid_t uid)); | ... | @@ -61,7 +62,7 @@ mu_get_auth_by_uid __P((uid_t uid)); |
61 | extern int | 62 | extern int |
62 | mu_authenticate __P((struct mu_auth_data *auth_data, char *pass)); | 63 | mu_authenticate __P((struct mu_auth_data *auth_data, char *pass)); |
63 | 64 | ||
64 | extern int mu_auth_nosupport __P((void *return_data, | 65 | extern int mu_auth_nosupport __P((struct mu_auth_data **return_data, |
65 | void *key, | 66 | void *key, |
66 | void *func_data, | 67 | void *func_data, |
67 | void *call_data)); | 68 | void *call_data)); | ... | ... |
-
Please register or sign in to post a comment