mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
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.
This commit is contained in:
parent
bc28a35dbc
commit
38b5744266
@ -28,9 +28,6 @@
|
|||||||
|
|
||||||
#include "curl_gethostname.h"
|
#include "curl_gethostname.h"
|
||||||
|
|
||||||
/* Hostname buffer size */
|
|
||||||
#define HOSTNAME_MAX 1024
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Curl_gethostname() is a wrapper around gethostname() which allows
|
* Curl_gethostname() is a wrapper around gethostname() which allows
|
||||||
* overriding the host name that the function would normally return.
|
* overriding the host name that the function would normally return.
|
||||||
|
@ -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);
|
int Curl_gethostname(char *name, GETHOSTNAME_TYPE_ARG2 namelen);
|
||||||
|
|
||||||
#endif /* HEADER_CURL_GETHOSTNAME_H */
|
#endif /* HEADER_CURL_GETHOSTNAME_H */
|
||||||
|
@ -93,9 +93,6 @@
|
|||||||
/* The last #include file should be: */
|
/* The last #include file should be: */
|
||||||
#include "memdebug.h"
|
#include "memdebug.h"
|
||||||
|
|
||||||
/* Hostname buffer size */
|
|
||||||
#define HOSTNAME_MAX 1024
|
|
||||||
|
|
||||||
/* "NTLMSSP" signature is always in ASCII regardless of the platform */
|
/* "NTLMSSP" signature is always in ASCII regardless of the platform */
|
||||||
#define NTLMSSP_SIGNATURE "\x4e\x54\x4c\x4d\x53\x53\x50"
|
#define NTLMSSP_SIGNATURE "\x4e\x54\x4c\x4d\x53\x53\x50"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user