#ifdef AFS_DEC_ENV
avc->vrefCount++;
#else
+#ifdef AFS_NETBSD_ENV
+ AFS_HOLD(AFSTOV(avc));
+#else
VN_HOLD(AFSTOV(avc));
#endif
+#endif
}
tb->refCount = ause+1;
tb->size_parm[0] = asparm0;
MObtainWriteLock(&afs_xbrs,302);
while (1) {
- int min_ts;
- struct brequest *min_tb;
+ int min_ts = 0;
+ struct brequest *min_tb = NULL;
if (afs_termState == AFSOP_STOP_BKG) {
if (--afs_nbrs <= 0)
/* find a request */
tb = afs_brs;
foundAny = 0;
- min_tb = NULL;
for(i=0; i<NBRS; i++, tb++) {
/* look for request with smallest ts */
if ((tb->refCount > 0) && !(tb->flags & BSTARTED)) {