Replace HOST_NAME_MAX with MAXHOSTNAMELEN.
FreeBSD lacks HOST_NAME_MAX.
This commit is contained in:
parent
468878d99a
commit
cc7c29bf9a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290935
@ -82,7 +82,7 @@ enum client_state {
|
||||
struct idm {
|
||||
TAILQ_ENTRY(idm) idm_entry;
|
||||
u_int32_t idm_id;
|
||||
char idm_name[HOST_NAME_MAX+1];
|
||||
char idm_name[MAXHOSTNAMELEN];
|
||||
#define F_SSL 0x00100000
|
||||
#define F_CONFIGURING 0x00200000
|
||||
#define F_NEEDAUTH 0x00400000
|
||||
@ -156,7 +156,7 @@ struct env {
|
||||
|
||||
u_int32_t sc_maxid;
|
||||
|
||||
char sc_domainname[HOST_NAME_MAX+1];
|
||||
char sc_domainname[MAXHOSTNAMELEN];
|
||||
struct timeval sc_conf_tv;
|
||||
struct event sc_conf_ev;
|
||||
TAILQ_HEAD(idm_list, idm) sc_idms;
|
||||
|
Loading…
Reference in New Issue
Block a user