Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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.
  • Loading branch information...
commit 38b5744266f805f3dd6d9486ba323f99ab420d52 1 parent bc28a35
Steve Holme captain-caveman2k authored committed
3  lib/curl_gethostname.c
@@ -28,9 +28,6 @@
28 28
29 29 #include "curl_gethostname.h"
30 30
31   -/* Hostname buffer size */
32   -#define HOSTNAME_MAX 1024
33   -
34 31 /*
35 32 * Curl_gethostname() is a wrapper around gethostname() which allows
36 33 * overriding the host name that the function would normally return.
4 lib/curl_gethostname.h
@@ -22,6 +22,10 @@
22 22 *
23 23 ***************************************************************************/
24 24
  25 +/* Hostname buffer size */
  26 +#define HOSTNAME_MAX 1024
  27 +
  28 +/* This returns the local machine's un-qualified hostname */
25 29 int Curl_gethostname(char *name, GETHOSTNAME_TYPE_ARG2 namelen);
26 30
27 31 #endif /* HEADER_CURL_GETHOSTNAME_H */
3  lib/curl_ntlm_msgs.c
@@ -93,9 +93,6 @@
93 93 /* The last #include file should be: */
94 94 #include "memdebug.h"
95 95
96   -/* Hostname buffer size */
97   -#define HOSTNAME_MAX 1024
98   -
99 96 /* "NTLMSSP" signature is always in ASCII regardless of the platform */
100 97 #define NTLMSSP_SIGNATURE "\x4e\x54\x4c\x4d\x53\x53\x50"
101 98

0 comments on commit 38b5744

Please sign in to comment.
Something went wrong with that request. Please try again.