Fixed declaration of _app_getpwnam. Moved mu_virtual_domain out of #ifdef guard.
Showing
1 changed file
with
4 additions
and
4 deletions
... | @@ -326,7 +326,7 @@ util_cpystr (char *dst, const char *src, size_t size) | ... | @@ -326,7 +326,7 @@ util_cpystr (char *dst, const char *src, size_t size) |
326 | return len; | 326 | return len; |
327 | } | 327 | } |
328 | 328 | ||
329 | static list_t *_app_getpwnam = NULL; | 329 | static list_t _app_getpwnam = NULL; |
330 | 330 | ||
331 | void | 331 | void |
332 | mu_register_getpwnam (struct passwd *(*fun) __P((const char *))) | 332 | mu_register_getpwnam (struct passwd *(*fun) __P((const char *))) |
... | @@ -346,7 +346,7 @@ mu_getpwnam (const char *name) | ... | @@ -346,7 +346,7 @@ mu_getpwnam (const char *name) |
346 | 346 | ||
347 | if (!p && iterator_create (&itr, _app_getpwnam) == 0) | 347 | if (!p && iterator_create (&itr, _app_getpwnam) == 0) |
348 | { | 348 | { |
349 | struct passwd *(*fun) __P((char *)); | 349 | struct passwd *(*fun) __P((const char *)); |
350 | for (iterator_first (itr); !p && !iterator_is_done (itr); | 350 | for (iterator_first (itr); !p && !iterator_is_done (itr); |
351 | iterator_next (itr)) | 351 | iterator_next (itr)) |
352 | { | 352 | { |
... | @@ -359,10 +359,10 @@ mu_getpwnam (const char *name) | ... | @@ -359,10 +359,10 @@ mu_getpwnam (const char *name) |
359 | return p; | 359 | return p; |
360 | } | 360 | } |
361 | 361 | ||
362 | #ifdef USE_VIRTUAL_DOMAINS | ||
363 | |||
364 | int mu_virtual_domain; | 362 | int mu_virtual_domain; |
365 | 363 | ||
364 | #ifdef USE_VIRTUAL_DOMAINS | ||
365 | |||
366 | struct passwd * | 366 | struct passwd * |
367 | getpwnam_virtual (const char *u) | 367 | getpwnam_virtual (const char *u) |
368 | { | 368 | { | ... | ... |
-
Please register or sign in to post a comment