summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-06 04:34:07 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-06 04:34:07 +0800
commit1f7dc4c32af84d525d8cf91decae19dc1ab2da02 (patch)
tree95bce0033c5197347b08627f3b422cc230fd89c2
parent2d49c43abc05fc453ff3ff154fbe3a8dfd1fb571 (diff)
downloadpttbbs-1f7dc4c32af84d525d8cf91decae19dc1ab2da02.tar
pttbbs-1f7dc4c32af84d525d8cf91decae19dc1ab2da02.tar.gz
pttbbs-1f7dc4c32af84d525d8cf91decae19dc1ab2da02.tar.bz2
pttbbs-1f7dc4c32af84d525d8cf91decae19dc1ab2da02.tar.lz
pttbbs-1f7dc4c32af84d525d8cf91decae19dc1ab2da02.tar.xz
pttbbs-1f7dc4c32af84d525d8cf91decae19dc1ab2da02.tar.zst
pttbbs-1f7dc4c32af84d525d8cf91decae19dc1ab2da02.zip
add FILE_BOTTOM for push_bottom
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1699 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--include/pttstruct.h1
-rw-r--r--util/uhash_loader.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h
index 5895c31d..c8944e02 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -189,6 +189,7 @@ typedef struct fileheader_t {
#define FILE_MARKED 0x2 /* opus: 0x8 */
#define FILE_DIGEST 0x4 /* digest */
#define FILE_HOLD 0x8 /* unused */
+#define FILE_BOTTOM 0x8 /* push_bottom */
#define FILE_SOLVED 0x10 /* problem solved, sysop only */
#define FILE_HIDE 0x20 /* hild */
#define FILE_BM 0x40 /* BM only */
diff --git a/util/uhash_loader.c b/util/uhash_loader.c
index 2ea80975..7c2f9beb 100644
--- a/util/uhash_loader.c
+++ b/util/uhash_loader.c
@@ -121,7 +121,8 @@ void add_to_uhash(int n, userec_t *user)
{
int *p, h = string_hash(user->userid);
strcpy(SHM->userid[n], user->userid);
- SHM->money[n] = user->money;
+ SHM->money[n] = -1;
+ //user->money;
p = &(SHM->hash_head[h]);