static-cm_dnsEnabled-20040323
authorJeffrey Altman <jaltman@mit.edu>
Wed, 24 Mar 2004 09:24:16 +0000 (09:24 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 24 Mar 2004 09:24:16 +0000 (09:24 +0000)
Make cm_dns.c cm_dnsEnabled static to prevent potential
conflict (not really) with a variable of the same name
in afsd_init.c

src/WINNT/afsd/afsd_init.c
src/WINNT/afsd/cm_dns.c

index c6cfb30..5094885 100644 (file)
@@ -89,7 +89,7 @@ cm_initparams_v1 cm_initParams;
 HANDLE afsi_file;
 
 #ifdef AFS_AFSDB_ENV
-extern int cm_dnsEnabled;
+int cm_dnsEnabled = 1;
 #endif
 
 char cm_NetBiosName[32];
index 0d53e51..e817fc2 100644 (file)
@@ -26,11 +26,7 @@ static char dns_addr[30];
 #ifdef DJGPP
 extern char cm_confDir[];
 #endif
-#if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x500
-int cm_dnsEnabled = -1;
-#else
-int cm_dnsEnabled = 1;  /* assume on */
-#endif
+static int cm_dnsEnabled = -1;
 
 void DNSlowerCase(char *str)
 {