summaryrefslogtreecommitdiffstats
path: root/mbbsd/friend.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-05-10 03:21:08 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-05-10 03:21:08 +0800
commita4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5 (patch)
treed2abd2d1aa673ad667e60b8029f0796d2e20a78f /mbbsd/friend.c
parent961bf03bac8ac5264a028d3f580904bbd5b4e37f (diff)
downloadpttbbs-a4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5.tar
pttbbs-a4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5.tar.gz
pttbbs-a4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5.tar.bz2
pttbbs-a4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5.tar.lz
pttbbs-a4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5.tar.xz
pttbbs-a4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5.tar.zst
pttbbs-a4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5.zip
- (internal) change 86400/... (seconds of day/month/...) to named constants.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4284 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/friend.c')
-rw-r--r--mbbsd/friend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/friend.c b/mbbsd/friend.c
index 9644aa1b..aa0a28bf 100644
--- a/mbbsd/friend.c
+++ b/mbbsd/friend.c
@@ -230,7 +230,7 @@ delete_friend_from_file(const char *file, const char *string, int case_sensitiv
return ret;
}
-// (2^31)/86400/30 = 828
+// (2^31)/DAY_SECONDS/30 = 828
#define MAX_EXPIRE_MONTH (800)
int
@@ -244,7 +244,7 @@ friend_validate(int type, int expire)
// expire is measured in month
if (expire > 0 && expire < MAX_EXPIRE_MONTH)
- expire *= 86400 *30;
+ expire *= DAY_SECONDS *30;
else
expire = 0;
syncnow();