summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2014-05-21 11:27:21 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2014-05-21 11:27:21 +0800
commitbd6ab47d6742a7bb7d92da2fdcc4342eeb1434dc (patch)
tree30c3c788242faea4c47bbbebf772480858a8355e
parentc1fbfa8075594f44237a8c743a6873400f857d79 (diff)
downloadpttbbs-bd6ab47d6742a7bb7d92da2fdcc4342eeb1434dc.tar
pttbbs-bd6ab47d6742a7bb7d92da2fdcc4342eeb1434dc.tar.gz
pttbbs-bd6ab47d6742a7bb7d92da2fdcc4342eeb1434dc.tar.bz2
pttbbs-bd6ab47d6742a7bb7d92da2fdcc4342eeb1434dc.tar.lz
pttbbs-bd6ab47d6742a7bb7d92da2fdcc4342eeb1434dc.tar.xz
pttbbs-bd6ab47d6742a7bb7d92da2fdcc4342eeb1434dc.tar.zst
pttbbs-bd6ab47d6742a7bb7d92da2fdcc4342eeb1434dc.zip
No temp define.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5996 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/read.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/read.c b/pttbbs/mbbsd/read.c
index 2e82aff9..a7897a3a 100644
--- a/pttbbs/mbbsd/read.c
+++ b/pttbbs/mbbsd/read.c
@@ -1246,9 +1246,9 @@ i_read(int cmdmode, const char *direct, void (*dotitle) (),
fileheader_t *headers0 = headers;
int headers_size0 = headers_size;
time4_t enter_time = now;
+ const size_t FHSZ = sizeof(fileheader_t);
strlcpy(currdirect0, currdirect, sizeof(currdirect0));
-#define FHSZ sizeof(fileheader_t)
/* Ptt: 這邊 headers 可以針對看板的最後 60 篇做 cache */
headers_size = p_lines;
headers = (fileheader_t *) calloc(headers_size, FHSZ);
@@ -1388,7 +1388,6 @@ i_read(int cmdmode, const char *direct, void (*dotitle) (),
} //end switch
mode = i_read_key(rcmdlist, locmem, currbid, bottom_line);
} while (mode != DOQUIT && !ZA_Waiting());
-#undef FHSZ
free(headers);
last_line = last_line0;