diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-10-31 17:49:59 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-10-31 17:49:59 +0800 |
commit | 06dc816ac07e1e214243d5a2d65cd296a3b8d65d (patch) | |
tree | 2508a0d824c5f001106eb942006bc787fdc91d6f | |
parent | 007539c0b77a46799944795e648f8e83d051835f (diff) | |
download | pttbbs-06dc816ac07e1e214243d5a2d65cd296a3b8d65d.tar pttbbs-06dc816ac07e1e214243d5a2d65cd296a3b8d65d.tar.gz pttbbs-06dc816ac07e1e214243d5a2d65cd296a3b8d65d.tar.bz2 pttbbs-06dc816ac07e1e214243d5a2d65cd296a3b8d65d.tar.lz pttbbs-06dc816ac07e1e214243d5a2d65cd296a3b8d65d.tar.xz pttbbs-06dc816ac07e1e214243d5a2d65cd296a3b8d65d.tar.zst pttbbs-06dc816ac07e1e214243d5a2d65cd296a3b8d65d.zip |
why variable "path" is 'static' on solaris swapused()
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2298 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/osdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/osdep.c b/mbbsd/osdep.c index 598cc5fd..4872083e 100644 --- a/mbbsd/osdep.c +++ b/mbbsd/osdep.c @@ -442,7 +442,7 @@ double swapused(int *total, int *used) register int free; struct swaptable *swt; struct swapent *ste; - static char path[256]; + static char path[256]; // does it really need 'static' ? cnt = swapctl(SC_GETNSWP, 0); swt = (struct swaptable *)malloc(sizeof(int) + cnt * sizeof(struct swapent)); |