From 9f2bc18f735a37c335b251e1cb6400bd6593bb34 Mon Sep 17 00:00:00 2001 From: ptt Date: Wed, 24 Mar 2004 22:30:46 +0000 Subject: simplfy append_record git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1606 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/proto.h | 2 +- include/pttstruct.h | 4 ++-- mbbsd/bbs.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/proto.h b/include/proto.h index 6a540073..c14b9d34 100644 --- a/include/proto.h +++ b/include/proto.h @@ -434,7 +434,7 @@ int delete_file(char *dirname, int size, int ent, int (*filecheck)()); int delete_range(char *fpath, int id1, int id2); int apply_record(char *fpath, int (*fptr)(), int size); int search_rec(char* dirname, int (*filecheck)()); -int do_append(char *fpath, fileheader_t *record, int size); +int append_record_forward(char *fpath, fileheader_t *record, int size); int get_sum_records(char* fpath, int size); /* register */ diff --git a/include/pttstruct.h b/include/pttstruct.h index d8774f8b..d3d8083f 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -98,8 +98,8 @@ typedef struct userec_t { unsigned char badpost; /* 評價為壞文章數 */ unsigned char goodsale; /* 競標 好的評價 */ unsigned char badsale; /* 競標 壞的評價 */ - - char pad[67]; + char myangel[IDLEN+1]; /* 我的小天使 */ + char pad[54]; } userec_t; /* these are flags in userec_t.uflag */ #define PAGER_FLAG 0x4 /* true if pager was OFF last session */ diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index e5e4dbeb..8cce6668 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -146,7 +146,7 @@ readtitle() showtitle(currBM, brd_title); prints("[←]離開 [→]閱\讀 [^P]發表文章 [b]備忘錄 [d]刪除 [z]精華區 " "[TAB]文摘 [h]elp\n\033[7m 編號 日 期 作 者 文 章 標 題" - " [%4d] \033[m", SHM->bcache[currbid - 1].nuser); + " 人氣:%-4d \033[m", SHM->bcache[currbid - 1].nuser); } static void -- cgit v1.2.3