windows-netidmgr-20090617
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 18 Jun 2009 06:04:29 +0000 (06:04 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 18 Jun 2009 06:04:29 +0000 (06:04 +0000)
LICENSE MIT

permit building with a broader range of visual studio versions

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;
 }