diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-08-15 15:13:20 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-08-15 15:13:20 +0800 |
commit | 2a43b662a3b330cfbb8b40af4fdf12359883c0de (patch) | |
tree | 96d20ef0e2858a7bdf55ed80bcc2cc4f584f93b3 | |
parent | f82fed73043fdca5b418ea31cf593874a7ec168d (diff) | |
download | pttbbs-2a43b662a3b330cfbb8b40af4fdf12359883c0de.tar pttbbs-2a43b662a3b330cfbb8b40af4fdf12359883c0de.tar.gz pttbbs-2a43b662a3b330cfbb8b40af4fdf12359883c0de.tar.bz2 pttbbs-2a43b662a3b330cfbb8b40af4fdf12359883c0de.tar.lz pttbbs-2a43b662a3b330cfbb8b40af4fdf12359883c0de.tar.xz pttbbs-2a43b662a3b330cfbb8b40af4fdf12359883c0de.tar.zst pttbbs-2a43b662a3b330cfbb8b40af4fdf12359883c0de.zip |
forget to commit
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1100 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/passwd.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/mbbsd/passwd.c b/mbbsd/passwd.c index a9b32f0c..7686e566 100644 --- a/mbbsd/passwd.c +++ b/mbbsd/passwd.c @@ -1,4 +1,4 @@ -/* $Id: passwd.c,v 1.8 2002/07/21 09:26:02 in2 Exp $ */ +/* $Id$ */ #include "bbs.h" static int semid = -1; @@ -103,6 +103,19 @@ passwd_apply(int (*fptr) (userec_t *)) return 0; } +int +passwd_apply2(int (*fptr)(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; + } + return 0; +} + void passwd_lock() { |