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 | 873703eecad2b2d743bba25ddc3fdbad75b1391c (patch) | |
tree | c6d975c3ff4b1f35cb020fdd0ceea6967de9e2a3 | |
parent | c3b09300bde274fe080fd0a457d22248aeed0a2f (diff) | |
download | pttbbs-873703eecad2b2d743bba25ddc3fdbad75b1391c.tar pttbbs-873703eecad2b2d743bba25ddc3fdbad75b1391c.tar.gz pttbbs-873703eecad2b2d743bba25ddc3fdbad75b1391c.tar.bz2 pttbbs-873703eecad2b2d743bba25ddc3fdbad75b1391c.tar.lz pttbbs-873703eecad2b2d743bba25ddc3fdbad75b1391c.tar.xz pttbbs-873703eecad2b2d743bba25ddc3fdbad75b1391c.tar.zst pttbbs-873703eecad2b2d743bba25ddc3fdbad75b1391c.zip |
forget to commit
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@1100 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/passwd.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/passwd.c b/pttbbs/mbbsd/passwd.c index a9b32f0c..7686e566 100644 --- a/pttbbs/mbbsd/passwd.c +++ b/pttbbs/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() { |