summaryrefslogtreecommitdiffstats
path: root/mbbsd/topsong.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-07-30 14:54:40 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-07-30 14:54:40 +0800
commitc0c9d87226fcdd179335b6f7356499ce05219b09 (patch)
tree6fc81a1bab6ff112288402fcef31a9a3425a1e4c /mbbsd/topsong.c
parent9c890899dc1ffab3a2ba67402c3dcb7b3e0e4f02 (diff)
downloadpttbbs-c0c9d87226fcdd179335b6f7356499ce05219b09.tar
pttbbs-c0c9d87226fcdd179335b6f7356499ce05219b09.tar.gz
pttbbs-c0c9d87226fcdd179335b6f7356499ce05219b09.tar.bz2
pttbbs-c0c9d87226fcdd179335b6f7356499ce05219b09.tar.lz
pttbbs-c0c9d87226fcdd179335b6f7356499ce05219b09.tar.xz
pttbbs-c0c9d87226fcdd179335b6f7356499ce05219b09.tar.zst
pttbbs-c0c9d87226fcdd179335b6f7356499ce05219b09.zip
use correct type: size_t/int/long/pointer
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2153 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/topsong.c')
-rw-r--r--mbbsd/topsong.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/topsong.c b/mbbsd/topsong.c
index cb71ac5b..073f0138 100644
--- a/mbbsd/topsong.c
+++ b/mbbsd/topsong.c
@@ -70,9 +70,9 @@ sortsong()
fprintf(fo,
" \033[36m──\033[37m名次\033[36m──────\033[37m歌"
" 名\033[36m───────────\033[37m次數\033[36m"
- "──\033[32m共%ld次\033[36m──\033[m\n", totalcount);
+ "──\033[32m共%d次\033[36m──\033[m\n", totalcount);
for (n = 0; n < 100 && songs[n].name[0]; n++) {
- fprintf(fo, " %5d. %-38.38s %4ld \033[32m[%.2f]\033[m\n", n + 1,
+ fprintf(fo, " %5d. %-38.38s %4d \033[32m[%.2f]\033[m\n", n + 1,
songs[n].name, songs[n].count,
(float)songs[n].count / totalcount);
}