diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-01-16 22:38:35 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-01-16 22:38:35 +0800 |
commit | 798578d4ab39420b79318eb2a274f8aecb558bf5 (patch) | |
tree | d0312b159682ca086960fbe91d02e84762d4dd02 /mbbsd/mbbsd.c | |
parent | 169cf5d08f377d095f133495e0577dcd8698cb25 (diff) | |
download | pttbbs-798578d4ab39420b79318eb2a274f8aecb558bf5.tar pttbbs-798578d4ab39420b79318eb2a274f8aecb558bf5.tar.gz pttbbs-798578d4ab39420b79318eb2a274f8aecb558bf5.tar.bz2 pttbbs-798578d4ab39420b79318eb2a274f8aecb558bf5.tar.lz pttbbs-798578d4ab39420b79318eb2a274f8aecb558bf5.tar.xz pttbbs-798578d4ab39420b79318eb2a274f8aecb558bf5.tar.zst pttbbs-798578d4ab39420b79318eb2a274f8aecb558bf5.zip |
eliminate `static' array
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@612 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r-- | mbbsd/mbbsd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 521673c5..74418777 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1,4 +1,4 @@ -/* $Id: mbbsd.c,v 1.61 2003/01/14 11:19:39 in2 Exp $ */ +/* $Id: mbbsd.c,v 1.62 2003/01/16 14:38:35 kcwu Exp $ */ #include "bbs.h" #define SOCKET_QLEN 4 @@ -251,11 +251,12 @@ talk_request(int sig) bell(); if (currutmp->msgcount) { char buf[200]; + char timebuf[100]; time_t now = time(0); snprintf(buf, sizeof(buf), "\033[33;41m★%s\033[34;47m [%s] %s \033[0m", - SHM->uinfo[currutmp->destuip].userid, my_ctime(&now), + SHM->uinfo[currutmp->destuip].userid, my_ctime(&now,timebuf,sizeof(timebuf)), (currutmp->sig == 2) ? "重要消息廣播!(請Ctrl-U,l查看熱訊記錄)" : "呼叫、呼叫,聽到請回答"); move(0, 0); |