diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-19 14:45:02 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-19 14:45:02 +0800 |
commit | 44192ae9292fd6d18b9a4aebc13c296d25d54b34 (patch) | |
tree | 4bdda6100ba971fcec04e25837856ba8f7025ac1 | |
parent | aca51f31d6df45adec502a5287e2428d18d89ba7 (diff) | |
download | pttbbs-44192ae9292fd6d18b9a4aebc13c296d25d54b34.tar pttbbs-44192ae9292fd6d18b9a4aebc13c296d25d54b34.tar.gz pttbbs-44192ae9292fd6d18b9a4aebc13c296d25d54b34.tar.bz2 pttbbs-44192ae9292fd6d18b9a4aebc13c296d25d54b34.tar.lz pttbbs-44192ae9292fd6d18b9a4aebc13c296d25d54b34.tar.xz pttbbs-44192ae9292fd6d18b9a4aebc13c296d25d54b34.tar.zst pttbbs-44192ae9292fd6d18b9a4aebc13c296d25d54b34.zip |
* move global variable to local.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4667 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/topsong.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/topsong.c b/mbbsd/topsong.c index 906dadbf..3ea60dbf 100644 --- a/mbbsd/topsong.c +++ b/mbbsd/topsong.c @@ -10,7 +10,6 @@ typedef struct songcmp_t { int count; } songcmp_t; -static int totalcount = 0; static int count_cmp(songcmp_t * b, songcmp_t * a) @@ -33,6 +32,7 @@ sortsong(void) songcmp_t songs[MAX_SONGS + 1]; int n; char buf[256], cbuf[256]; + int totalcount = 0; memset(songs, 0, sizeof(songs)); if (!fp) |