From: Jim Rees Date: Fri, 24 Sep 2004 16:42:32 +0000 (+0000) Subject: rx-nprocs-static-20040924 X-Git-Tag: BP-disconnected~239 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=9592e1b10c23d99a9f7b29b77033b054974bbff1;p=packages%2Fo%2Fopenafs.git rx-nprocs-static-20040924 make nProcs static so it will count up correctly also change its scope to eliminate compiler warning --- diff --git a/src/rx/rx.c b/src/rx/rx.c index ff61760ba..edcaaf3c6 100644 --- a/src/rx/rx.c +++ b/src/rx/rx.c @@ -662,7 +662,7 @@ void rx_StartServer(int donateMe) { register struct rx_service *service; - register int i, nProcs = 0; + register int i; SPLVAR; clock_NewTime(); @@ -701,6 +701,7 @@ rx_StartServer(int donateMe) #ifndef AFS_NT40_ENV #ifndef KERNEL char name[32]; + static int nProcs; #ifdef AFS_PTHREAD_ENV pid_t pid; pid = (pid_t) pthread_self();