diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-03-23 20:15:10 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-03-23 20:15:10 +0800 |
commit | 8546759cec4d91a22da56ee261f6aac0d77abd5c (patch) | |
tree | bcb20e2e320a01ca3beaf3a68e11d5b5dcaa02a7 /mbbsd | |
parent | 0f867492a82d71f8205f70e007dc196010437031 (diff) | |
download | pttbbs-8546759cec4d91a22da56ee261f6aac0d77abd5c.tar pttbbs-8546759cec4d91a22da56ee261f6aac0d77abd5c.tar.gz pttbbs-8546759cec4d91a22da56ee261f6aac0d77abd5c.tar.bz2 pttbbs-8546759cec4d91a22da56ee261f6aac0d77abd5c.tar.lz pttbbs-8546759cec4d91a22da56ee261f6aac0d77abd5c.tar.xz pttbbs-8546759cec4d91a22da56ee261f6aac0d77abd5c.tar.zst pttbbs-8546759cec4d91a22da56ee261f6aac0d77abd5c.zip |
remove unused variables
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3489 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/cache.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c index 465a59e0..45c21f06 100644 --- a/mbbsd/cache.c +++ b/mbbsd/cache.c @@ -849,7 +849,7 @@ reload_pttcache(void) fileheader_t item, subitem; char pbuf[256], buf[256], *chr; FILE *fp, *fp1, *fp2; - int id, section = 0; + int id; SHM->Pbusystate = 1; SHM->max_film = 0; @@ -864,8 +864,6 @@ reload_pttcache(void) pbuf, item.filename); if (!(fp1 = fopen(buf, "r"))) continue; - SHM->next_refresh[section] = SHM->n_notes[section] = id; - section++; while (fread(&subitem, sizeof(subitem), 1, fp1)) { snprintf(buf, sizeof(buf), "%s/%s/%s", pbuf, item.filename, @@ -880,14 +878,13 @@ reload_pttcache(void) break; } fclose(fp1); - if (id >= MAX_MOVIE || section >= MAX_MOVIE_SECTION) + if (id >= MAX_MOVIE) break; } } fclose(fp); } - SHM->next_refresh[section] = -1; - SHM->n_notes[section] = SHM->max_film = id - 1; + SHM->max_film = id - 1; SHM->max_history = SHM->max_film - 2; if (SHM->max_history > MAX_HISTORY - 1) SHM->max_history = MAX_HISTORY - 1; |