diff options
-rw-r--r-- | lib/curl_gethostname.c | 3 | ||||
-rw-r--r-- | lib/curl_gethostname.h | 4 | ||||
-rw-r--r-- | lib/curl_ntlm_msgs.c | 3 |
3 files changed, 4 insertions, 6 deletions
diff --git a/lib/curl_gethostname.c b/lib/curl_gethostname.c index 210ca0264..6fcfdc542 100644 --- a/lib/curl_gethostname.c +++ b/lib/curl_gethostname.c @@ -28,9 +28,6 @@ #include "curl_gethostname.h" -/* Hostname buffer size */ -#define HOSTNAME_MAX 1024 - /* * Curl_gethostname() is a wrapper around gethostname() which allows * overriding the host name that the function would normally return. diff --git a/lib/curl_gethostname.h b/lib/curl_gethostname.h index b8ecf88d6..48740f62a 100644 --- a/lib/curl_gethostname.h +++ b/lib/curl_gethostname.h @@ -22,6 +22,10 @@ * ***************************************************************************/ +/* Hostname buffer size */ +#define HOSTNAME_MAX 1024 + +/* This returns the local machine's un-qualified hostname */ int Curl_gethostname(char *name, GETHOSTNAME_TYPE_ARG2 namelen); #endif /* HEADER_CURL_GETHOSTNAME_H */ diff --git a/lib/curl_ntlm_msgs.c b/lib/curl_ntlm_msgs.c index 0c8d2e961..d2d34a7b3 100644 --- a/lib/curl_ntlm_msgs.c +++ b/lib/curl_ntlm_msgs.c @@ -93,9 +93,6 @@ /* The last #include file should be: */ #include "memdebug.h" -/* Hostname buffer size */ -#define HOSTNAME_MAX 1024 - /* "NTLMSSP" signature is always in ASCII regardless of the platform */ #define NTLMSSP_SIGNATURE "\x4e\x54\x4c\x4d\x53\x53\x50" |