From 44192ae9292fd6d18b9a4aebc13c296d25d54b34 Mon Sep 17 00:00:00 2001 From: kcwu Date: Fri, 19 Jun 2009 06:45:02 +0000 Subject: * move global variable to local. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4667 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/topsong.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mbbsd') 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) -- cgit v1.2.3