diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-01-16 19:58:05 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-01-16 19:58:05 +0800 |
commit | 8b4d9672147dbc8d1905435c99e71332b1c50712 (patch) | |
tree | 784d27ba0a9c510c0afd837bad33c7676b41a7eb /mbbsd/cal.c | |
parent | 376f2d4fa927c6c521bbbe1f9b7c6df0ecdf1157 (diff) | |
download | pttbbs-8b4d9672147dbc8d1905435c99e71332b1c50712.tar pttbbs-8b4d9672147dbc8d1905435c99e71332b1c50712.tar.gz pttbbs-8b4d9672147dbc8d1905435c99e71332b1c50712.tar.bz2 pttbbs-8b4d9672147dbc8d1905435c99e71332b1c50712.tar.lz pttbbs-8b4d9672147dbc8d1905435c99e71332b1c50712.tar.xz pttbbs-8b4d9672147dbc8d1905435c99e71332b1c50712.tar.zst pttbbs-8b4d9672147dbc8d1905435c99e71332b1c50712.zip |
remove unnecessary `static' keyword from some local variable
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@602 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/cal.c')
-rw-r--r-- | mbbsd/cal.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c index e4ecc8cf..48151b7c 100644 --- a/mbbsd/cal.c +++ b/mbbsd/cal.c @@ -1,4 +1,4 @@ -/* $Id: cal.c,v 1.20 2002/08/23 11:33:01 in2 Exp $ */ +/* $Id: cal.c,v 1.21 2003/01/16 11:58:04 kcwu Exp $ */ #include "bbs.h" /* ¨¾°ô Multi play */ @@ -368,8 +368,8 @@ int give_tax(int money) { int i, tax = 0; - static int tax_bound[] = {1000000, 100000, 10000, 1000, 0}; - static double tax_rate[] = {0.4, 0.3, 0.2, 0.1, 0.08}; + int tax_bound[] = {1000000, 100000, 10000, 1000, 0}; + double tax_rate[] = {0.4, 0.3, 0.2, 0.1, 0.08}; for (i = 0; i <= 4; i++) if (money > tax_bound[i]) { tax += (money - tax_bound[i]) * tax_rate[i]; |