From: Wouter Wijngaards Date: Tue, 6 Jan 2015 14:49:34 +0000 (+0000) Subject: please lint on FreeBSD X-Git-Tag: release-1.5.2rc1~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6ba5371563beb80901c1e7edc6cb90af8fe2ef6;p=thirdparty%2Funbound.git please lint on FreeBSD git-svn-id: file:///svn/unbound/trunk@3308 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/services/listen_dnsport.c b/services/listen_dnsport.c index 870c15e3b..b9114d296 100644 --- a/services/listen_dnsport.c +++ b/services/listen_dnsport.c @@ -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 */ diff --git a/smallapp/unbound-control.c b/smallapp/unbound-control.c index 75e2fc86c..ac8d96857 100644 --- a/smallapp/unbound-control.c +++ b/smallapp/unbound-control.c @@ -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);