From 9592e1b10c23d99a9f7b29b77033b054974bbff1 Mon Sep 17 00:00:00 2001 From: Jim Rees Date: Fri, 24 Sep 2004 16:42:32 +0000 Subject: [PATCH] rx-nprocs-static-20040924 make nProcs static so it will count up correctly also change its scope to eliminate compiler warning --- src/rx/rx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.39.5