summaryrefslogtreecommitdiffstats
path: root/mbbsd/stuff.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-21 04:28:21 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-21 04:28:21 +0800
commit80d6431f5d2fa48f925712ccd98c1983404e7ee9 (patch)
tree6411ae9d890ba61413664da1f37f468259f4281c /mbbsd/stuff.c
parent82664ae2ecc5db24c614f7a625e859975f55a6b5 (diff)
downloadpttbbs-80d6431f5d2fa48f925712ccd98c1983404e7ee9.tar
pttbbs-80d6431f5d2fa48f925712ccd98c1983404e7ee9.tar.gz
pttbbs-80d6431f5d2fa48f925712ccd98c1983404e7ee9.tar.bz2
pttbbs-80d6431f5d2fa48f925712ccd98c1983404e7ee9.tar.lz
pttbbs-80d6431f5d2fa48f925712ccd98c1983404e7ee9.tar.xz
pttbbs-80d6431f5d2fa48f925712ccd98c1983404e7ee9.tar.zst
pttbbs-80d6431f5d2fa48f925712ccd98c1983404e7ee9.zip
revert cuser from pointer to buffer.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1798 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/stuff.c')
-rw-r--r--mbbsd/stuff.c30
1 files changed, 3 insertions, 27 deletions
diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c
index 008f18f9..e088b116 100644
--- a/mbbsd/stuff.c
+++ b/mbbsd/stuff.c
@@ -12,12 +12,6 @@ static char *str_board_n_file = "boards/%c/%s/%s.%d";
static char *str_dotdir = STR_DOTDIR;
void
-setcalfile(char *buf, char *userid)
-{
- sprintf(buf, "home/%c/%s/calendar", userid[0], userid);
-}
-
-void
sethomepath(char *buf, char *userid)
{
sprintf(buf, "home/%c/%s", userid[0], userid);
@@ -45,7 +39,7 @@ sethomefile(char *buf, char *userid, char *fname)
void
setuserfile(char *buf, char *fname)
{
- sprintf(buf, str_home_file, cuser->userid[0], cuser->userid, fname);
+ sprintf(buf, str_home_file, cuser.userid[0], cuser.userid, fname);
}
void
@@ -162,24 +156,6 @@ trim(char *buf)
/* ----------------------------------------------------- */
/* 字串檢查函數:英文、數字、檔名、E-mail address */
/* ----------------------------------------------------- */
-int
-isprint2(char ch)
-{
- return ((ch & 0x80) || isprint(ch));
-}
-
-int
-not_alpha(char ch)
-{
- return (ch < 'A' || (ch > 'Z' && ch < 'a') || ch > 'z');
-}
-
-int
-not_alnum(char ch)
-{
- return (ch < '0' || (ch > '9' && ch < 'A') ||
- (ch > 'Z' && ch < 'a') || ch > 'z');
-}
int
invalid_pname(char *str)
@@ -243,8 +219,8 @@ is_uBM(char *list, char *id)
int
is_BM(char *list)
{
- if (is_uBM(list, cuser->userid)) {
- cuser->userlevel |= PERM_BM; /* Ptt 自動加上BM的權利 */
+ if (is_uBM(list, cuser.userid)) {
+ cuser.userlevel |= PERM_BM; /* Ptt 自動加上BM的權利 */
return 1;
}
return 0;