]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Fix build when INSTRUMENT_LOCKS isn't defined
authorNickolai Zeldovich <kolya@mit.edu>
Sun, 21 Apr 2002 04:55:01 +0000 (04:55 +0000)
committerGarry Zacheiss <zacheiss@mit.edu>
Sun, 21 Apr 2002 04:55:01 +0000 (04:55 +0000)
(cherry picked from commit 0dfa0954ffdf25f93e44394fce9d0f1c0872576e)

src/afs/afs_callback.c

index 193c64274f75ebd60420b1f560d51c7deef03cf1..002c02f64edd9ad695679346c69aa2ec8c7d6dcf 100644 (file)
@@ -239,9 +239,15 @@ int SRXAFSCB_GetLock (a_call, a_index, a_result)
        a_result->lock.exclLocked = ((struct afs_lock *)(tl->addr))->excl_locked;
        a_result->lock.readersReading = ((struct afs_lock *)(tl->addr))->readers_reading;
        a_result->lock.numWaiting = ((struct afs_lock *)(tl->addr))->num_waiting;
+#ifdef INSTRUMENT_LOCKS
        a_result->lock.pid_last_reader = ((struct afs_lock *)(tl->addr))->pid_last_reader;
        a_result->lock.pid_writer = ((struct afs_lock *)(tl->addr))->pid_writer;
        a_result->lock.src_indicator = ((struct afs_lock *)(tl->addr))->src_indicator;
+#else
+       a_result->lock.pid_last_reader = 0;
+       a_result->lock.pid_writer = 0;
+       a_result->lock.src_indicator = 0;
+#endif
        code = 0;
     }