From 38b5744266f805f3dd6d9486ba323f99ab420d52 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sun, 25 Sep 2011 23:58:47 +0200 Subject: HOSTNAME_MAX: Moved to curl_gethostname.h Moved HOSTNAME_MAX #define into curl_gethostname.h rather than being locally defined in curl_gethostname.c, curl_ntlm_msgs.c and smtp.c. --- lib/curl_gethostname.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/curl_gethostname.h') 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 */ -- cgit v1.2.3