diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-03-25 06:30:46 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-03-25 06:30:46 +0800 |
commit | 9f2bc18f735a37c335b251e1cb6400bd6593bb34 (patch) | |
tree | dd5b4f516ff831fdd5a0fa987a885751b3145201 /include | |
parent | 194d19647bc28b9a4299a6c22e1179178ceabff9 (diff) | |
download | pttbbs-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
Diffstat (limited to 'include')
-rw-r--r-- | include/proto.h | 2 | ||||
-rw-r--r-- | include/pttstruct.h | 4 |
2 files changed, 3 insertions, 3 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 */ |