rx-nprocs-static-20040924
authorJim Rees <rees@umich.edu>
Fri, 24 Sep 2004 16:42:32 +0000 (16:42 +0000)
committerJim Rees <rees@umich.edu>
Fri, 24 Sep 2004 16:42:32 +0000 (16:42 +0000)
make nProcs static so it will count up correctly
also change its scope to eliminate compiler warning

src/rx/rx.c

index ff61760..edcaaf3 100644 (file)
@@ -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();