summaryrefslogtreecommitdiffstats
path: root/misc.c
diff options
context:
space:
mode:
authorJames Yonan <james@openvpn.net>2010-03-31 06:38:21 +0000
committerJames Yonan <james@openvpn.net>2010-03-31 06:38:21 +0000
commit74fce85ee80ee5f484b62a3a81e9981e5698f1e1 (patch)
treeb4723fb33b503ebd0cee953cd0263d0fb9740a89 /misc.c
parent2b9b4c8a2d245a03098581de2d54b399e4bc4ad9 (diff)
downloadopenvpn-74fce85ee80ee5f484b62a3a81e9981e5698f1e1.tar.gz
openvpn-74fce85ee80ee5f484b62a3a81e9981e5698f1e1.tar.xz
openvpn-74fce85ee80ee5f484b62a3a81e9981e5698f1e1.zip
Updated MSVC build scripts to Visual Studio 2008:
python msvc\config.py nmake /f msvc\msvc.mak Version 2.1.1e git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@5516 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc.c b/misc.c
index 33e6762..b52a042 100644
--- a/misc.c
+++ b/misc.c
@@ -1194,7 +1194,7 @@ create_temp_filename (const char *directory, const char *prefix, struct gc_arena
const char *
hostname_randomize(const char *hostname, struct gc_arena *gc)
{
- const int n_rnd_bytes = 6;
+# define n_rnd_bytes 6
char *hst = string_alloc(hostname, gc);
char *dot = strchr(hst, '.');
@@ -1213,6 +1213,7 @@ hostname_randomize(const char *hostname, struct gc_arena *gc)
}
else
return hostname;
+# undef n_rnd_bytes
}
#else