mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 06:11:32 +02:00
[MINOR] export the hostname variable so that all the code can access it
The hostname variable will be used later, export it.
This commit is contained in:
parent
68dcd25d9c
commit
3ad6a7640b
@ -179,4 +179,9 @@
|
|||||||
#define MAX_SIGNAL 256
|
#define MAX_SIGNAL 256
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Maximum host name length */
|
||||||
|
#ifndef MAX_HOSTNAME_LEN
|
||||||
|
#define MAX_HOSTNAME_LEN 32
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* _COMMON_DEFAULTS_H */
|
#endif /* _COMMON_DEFAULTS_H */
|
||||||
|
@ -95,6 +95,7 @@ extern const int zero;
|
|||||||
extern const int one;
|
extern const int one;
|
||||||
extern const struct linger nolinger;
|
extern const struct linger nolinger;
|
||||||
extern int stopping; /* non zero means stopping in progress */
|
extern int stopping; /* non zero means stopping in progress */
|
||||||
|
extern char hostname[MAX_HOSTNAME_LEN];
|
||||||
|
|
||||||
#endif /* _TYPES_GLOBAL_H */
|
#endif /* _TYPES_GLOBAL_H */
|
||||||
|
|
||||||
|
@ -152,12 +152,7 @@ const int zero = 0;
|
|||||||
const int one = 1;
|
const int one = 1;
|
||||||
const struct linger nolinger = { .l_onoff = 1, .l_linger = 0 };
|
const struct linger nolinger = { .l_onoff = 1, .l_linger = 0 };
|
||||||
|
|
||||||
/*
|
char hostname[MAX_HOSTNAME_LEN] = "";
|
||||||
* Syslog facilities and levels. Conforming to RFC3164.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define MAX_HOSTNAME_LEN 32
|
|
||||||
static char hostname[MAX_HOSTNAME_LEN] = "";
|
|
||||||
|
|
||||||
|
|
||||||
/*********************************************************************/
|
/*********************************************************************/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user