diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-07 05:35:23 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-07 05:35:23 +0800 |
commit | e8fc08b9800ba86163e5bf43469cdc9f4b478b13 (patch) | |
tree | eb2dcd75cad19ac57b7e9d9cc29c63a850d8ad86 /util/birth.c | |
parent | c0a6419aeceaeb93d5d9ccde393236d67ff8c72f (diff) | |
download | pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.gz pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.bz2 pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.lz pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.xz pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.zst pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.zip |
only one shared memory
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@296 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/birth.c')
-rw-r--r-- | util/birth.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/util/birth.c b/util/birth.c index 89033830..5c13c54f 100644 --- a/util/birth.c +++ b/util/birth.c @@ -1,21 +1,12 @@ /* ¹Ø¬Pµ{¦¡ 96 10/11 */ -#include <stdio.h> -#include <sys/types.h> -#include <ctype.h> -#include <unistd.h> -#include <stdlib.h> -#include <time.h> -#include "config.h" -#include "pttstruct.h" -#include "util.h" -#include "common.h" +#include "bbs.h" #define OUTFILE BBSHOME "/etc/birth.today" struct userec_t cuser; -int bad_user_id() { +int bad_user_id(char *userid) { register char ch; int j; if (strlen(cuser.userid) < 2 || !isalpha(cuser.userid[0])) @@ -68,7 +59,7 @@ int main(argc, argv) fprintf(fp1, "[33m¡i[1;45m¥»¤é¹Ø¬P[40;33m¡j[m \n"); for(j = 1; j <= MAX_USERS; j++) { passwd_query(j, &cuser); - if (bad_user_id()) + if (bad_user_id(NULL)) continue; if (cuser.month == ptime->tm_mon + 1) { |