summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-25 06:30:46 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-25 06:30:46 +0800
commit9f2bc18f735a37c335b251e1cb6400bd6593bb34 (patch)
treedd5b4f516ff831fdd5a0fa987a885751b3145201
parent194d19647bc28b9a4299a6c22e1179178ceabff9 (diff)
downloadpttbbs-9f2bc18f735a37c335b251e1cb6400bd6593bb34.tar
pttbbs-9f2bc18f735a37c335b251e1cb6400bd6593bb34.tar.gz
pttbbs-9f2bc18f735a37c335b251e1cb6400bd6593bb34.tar.bz2
pttbbs-9f2bc18f735a37c335b251e1cb6400bd6593bb34.tar.lz
pttbbs-9f2bc18f735a37c335b251e1cb6400bd6593bb34.tar.xz
pttbbs-9f2bc18f735a37c335b251e1cb6400bd6593bb34.tar.zst
pttbbs-9f2bc18f735a37c335b251e1cb6400bd6593bb34.zip
simplfy append_record
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1606 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--include/proto.h2
-rw-r--r--include/pttstruct.h4
-rw-r--r--mbbsd/bbs.c2
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