util: clean up two #ifs
authorGarrett Wollman <wollman@csail.mit.edu>
Wed, 13 Jul 2011 18:20:17 +0000 (14:20 -0400)
committerDerrick Brashear <shadow@dementia.org>
Fri, 15 Jul 2011 19:35:06 +0000 (12:35 -0700)
Use defined(...) in two instances to avoid warnings.

Change-Id: I0a574283e2384c7cfb2f58884570e78e3fed3bc6
Requested-by: Simon Wilkinson
Reviewed-on: http://gerrit.openafs.org/5005
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

src/util/afsutil_prototypes.h
src/util/pthread_threadname.c

index ded6e66..58c7b6a 100644 (file)
@@ -149,7 +149,7 @@ extern int parseNetFiles(afs_uint32 addrbuf[], afs_uint32 maskbuf[],
 
 
 /* pthread_threadname.c */
-#if AFS_PTHREAD_ENV && !defined(AFS_NT40_ENV)
+#if defined(AFS_PTHREAD_ENV) && !defined(AFS_NT40_ENV)
 extern void afs_pthread_setname(pthread_t thread, const char *threadname);
 extern void afs_pthread_setname_self(const char *threadname);
 #elif defined(AFS_NT40_ENV)
index 1c68272..fbb2b80 100644 (file)
@@ -28,7 +28,7 @@
 
 #include "afsutil.h"
 
-#if AFS_PTHREAD_ENV && !defined(AFS_NT40_ENV)
+#if defined(AFS_PTHREAD_ENV) && !defined(AFS_NT40_ENV)
 # include <pthread.h>
 # ifdef HAVE_PTHREAD_NP_H
 #  include <pthread_np.h>