]> granicus.if.org Git - curl/commitdiff
HOSTNAME_MAX: Moved to curl_gethostname.h
authorSteve Holme <steve_holme@hotmail.com>
Sun, 25 Sep 2011 21:58:47 +0000 (23:58 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 25 Sep 2011 21:58:47 +0000 (23:58 +0200)
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.c
lib/curl_gethostname.h
lib/curl_ntlm_msgs.c

index 210ca026437daa5464f5fa7b113a45c2ee2c9c33..6fcfdc5422151c3fe425f6e9efd80d346ed29ec1 100644 (file)
@@ -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.
index b8ecf88d6ae8b630155f5817432d98c624ad8ef9..48740f62afcabd02d9335e2ca956baf7d57455c4 100644 (file)
  *
  ***************************************************************************/
 
+/* 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 */
index 0c8d2e961a476e30cb77d3948c62b6b0ba007c19..d2d34a7b32e65a62de90be65ecadc8f5801514ba 100644 (file)
@@ -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"