diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-04 21:08:35 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-04 21:08:35 +0800 |
commit | 9e81baf8352b3d525c9a1459f28dae6b540988e3 (patch) | |
tree | a558e73187b9d45b59280a79c927e7f8bb315623 /mbbsd/register.c | |
parent | e42291049072cfee02408394850b33b3580dbd83 (diff) | |
download | pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar.gz pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar.bz2 pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar.lz pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar.xz pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar.zst pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.zip |
global variable move to var.c
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@280 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/register.c')
-rw-r--r-- | mbbsd/register.c | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c index 36b30f46..a3fa13ef 100644 --- a/mbbsd/register.c +++ b/mbbsd/register.c @@ -1,27 +1,7 @@ -/* $Id: register.c,v 1.4 2002/05/13 03:20:04 ptt Exp $ */ +/* $Id: register.c,v 1.5 2002/06/04 13:08:34 in2 Exp $ */ #define _XOPEN_SOURCE -#include <stdio.h> -#include <strings.h> -#include <string.h> -#include <unistd.h> -#include <time.h> -#include <fcntl.h> -#include <stdlib.h> -#include <unistd.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "config.h" -#include "pttstruct.h" -#include "perm.h" -#include "common.h" -#include "proto.h" - -extern char *str_new; -extern char *msg_uid; -extern int t_lines, t_columns; /* Screen size / width */ -extern char *str_mail_address; -extern time_t now; +#include "bbs.h" /* password encryption */ static char pwbuf[14]; @@ -141,7 +121,6 @@ int check_and_expire_account(int uid,userec_t *urec) return val; } -extern char *fn_passwd; int getnewuserid() { char genbuf[50]; @@ -199,7 +178,6 @@ int getnewuserid() { } void new_register() { - extern userec_t xuser; userec_t newuser; char passbuf[STRLEN]; int allocid, try, id; @@ -284,7 +262,6 @@ void new_register() { } } -extern userec_t cuser; void check_register() { char *ptr = NULL; |