mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-01 12:29:36 -05:00
please lint on FreeBSD
git-svn-id: file:///svn/unbound/trunk@3308 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
cd7d15aee9
commit
d6ba537156
2 changed files with 2 additions and 2 deletions
|
|
@ -602,7 +602,7 @@ create_local_accept_sock(const char *path, int* noproto)
|
|||
|
||||
#ifdef HAVE_STRUCT_SOCKADDR_UN_SUN_LEN
|
||||
/* this member exists on BSDs, not Linux */
|
||||
sun.sun_len = sizeof(sun);
|
||||
sun.sun_len = (sa_family_t)sizeof(sun);
|
||||
#endif
|
||||
sun.sun_family = AF_LOCAL;
|
||||
/* length is 92-108, 104 on FreeBSD */
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@ contact_server(const char* svr, struct config_file* cfg, int statuscmd)
|
|||
struct sockaddr_un* sun = (struct sockaddr_un *) &addr;
|
||||
sun->sun_family = AF_LOCAL;
|
||||
#ifdef HAVE_STRUCT_SOCKADDR_UN_SUN_LEN
|
||||
sun->sun_len = sizeof(sun);
|
||||
sun->sun_len = (sa_family_t)sizeof(sun);
|
||||
#endif
|
||||
(void)strlcpy(sun->sun_path, svr, sizeof(sun->sun_path));
|
||||
addrlen = (socklen_t)sizeof(struct sockaddr_un);
|
||||
|
|
|
|||
Loading…
Reference in a new issue