From 06dc816ac07e1e214243d5a2d65cd296a3b8d65d Mon Sep 17 00:00:00 2001 From: kcwu Date: Sun, 31 Oct 2004 09:49:59 +0000 Subject: why variable "path" is 'static' on solaris swapused() git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2298 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/osdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.2.3