summaryrefslogtreecommitdiffstats
path: root/mbbsd/passwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/passwd.c')
-rw-r--r--mbbsd/passwd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/passwd.c b/mbbsd/passwd.c
index 15323be2..ddda6a48 100644
--- a/mbbsd/passwd.c
+++ b/mbbsd/passwd.c
@@ -121,14 +121,14 @@ int initcuser(const char *userid)
}
int
-passwd_apply(int (*fptr) (int, userec_t *))
+passwd_apply(void *ctx, int (*fptr) (void *ctx, int, userec_t *))
{
int i;
userec_t user;
for (i = 0; i < MAX_USERS; i++) {
passwd_query(i + 1, &user);
- if ((*fptr) (i, &user) == QUIT)
- return QUIT;
+ if ((*fptr) (ctx, i, &user) < 0)
+ return -1;
}
return 0;
}