From 98acb18b8e6b7d7bfdd49809774e61328ef7f7a5 Mon Sep 17 00:00:00 2001 From: ptt Date: Tue, 30 Mar 2004 16:50:34 +0000 Subject: add mmap to cuser get ride of passwd_update git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1640 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/perm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/perm.h') diff --git a/include/perm.h b/include/perm.h index 2d676bae..93232bdb 100644 --- a/include/perm.h +++ b/include/perm.h @@ -49,8 +49,8 @@ #define PERM_FORWARD (PERM_BASIC) /* to do the forwarding */ #define PERM_INTERNET (PERM_LOGINOK) /* 身份認證過關的才能寄信到 Internet */ -#define HAS_PERM(x) ((x) ? cuser.userlevel & (x) : 1) -#define HAVE_PERM(x) (cuser.userlevel&(x)) +#define HAS_PERM(x) ((x) ? cuser->userlevel & (x) : 1) +#define HAVE_PERM(x) (cuser->userlevel&(x)) #define PERM_HIDE(u) ((u)->userlevel & PERM_SYSOP && \ (u)->userlevel & PERM_DENYPOST) -- cgit v1.2.3