git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d3c732b
)
rx-nprocs-static-20040924
author
Jim Rees
<rees@umich.edu>
Fri, 24 Sep 2004 16:42:32 +0000 (16:42 +0000)
committer
Jim 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
patch
|
blob
|
history
diff --git
a/src/rx/rx.c
b/src/rx/rx.c
index
ff61760
..
edcaaf3
100644
(file)
--- 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();