]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-linux-osi-gettime-avoid-collision-20050308
authorJohan Danielsson <joda+openafs@pdc.kth.se>
Fri, 11 Mar 2005 06:51:42 +0000 (06:51 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 11 Mar 2005 06:51:42 +0000 (06:51 +0000)
FIXES 17802

don't reuse tv as a variable name in osi_GetTime macro

(cherry picked from commit a91a5fc68658f845f18d288925d4ef0498e29f93)

src/afs/LINUX/osi_machdep.h

index 83f6b1a6dd5b62778200dd52a327cc68e684e9ff..03ba34ef53da56f0bd3a96c12bc029f96ecb061d 100644 (file)
 #ifdef AFS_LINUX_64BIT_KERNEL
 #define osi_GetTime(V)                                 \
     do {                                               \
-       struct timeval tv;                              \
-       do_gettimeofday(&tv);                           \
-       (V)->tv_sec = (afs_int32)tv.tv_sec;             \
-       (V)->tv_usec = (afs_int32)tv.tv_usec;           \
+       struct timeval __afs_tv;                              \
+       do_gettimeofday(&__afs_tv);                           \
+       (V)->tv_sec = (afs_int32)__afs_tv.tv_sec;             \
+       (V)->tv_usec = (afs_int32)__afs_tv.tv_usec;           \
     } while (0)
 #else
 #define osi_GetTime(V) do_gettimeofday((V))