DEVEL15-windows-netidmgr-20090617
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 19 Jun 2009 04:16:23 +0000 (04:16 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 19 Jun 2009 04:16:23 +0000 (04:16 +0000)
LICENSE MIT

permit building with a broader range of visual studio versions

(cherry picked from commit cfe1f5676d458ca2ca8ba562ace782305e68059f)

src/WINNT/netidmgr_plugin/afsfuncs.c

index 05018c8..d821547 100644 (file)
 #pragma warning (push)
 #pragma warning (disable: 4005)
 
-#include<winsock2.h>
 #include<afscred.h>
-#include<afs/cm.h>
 #include<dynimport.h>
 #include<krb5common.h>
+#include<winsock2.h>
+#include<afs/cm.h>
 
 #pragma warning (pop)
 
@@ -1417,7 +1417,7 @@ afs_get_cellconfig(char *cell, afs_conf_cell *cellconfig, char *local_cell)
                                 (void*) cellconfig);
 
     if (linkedCell[0])
-        cellconfig->linkedCell = strdup(linkedCell);
+        cellconfig->linkedCell = _strdup(linkedCell);
 
     return rc;
 }