Date: Mon, 7 Mar 2011 19:54:51 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r219385 - head/sbin/hastd Message-ID: <201103071954.p27JspWM045517@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pjd Date: Mon Mar 7 19:54:51 2011 New Revision: 219385 URL: http://svn.freebsd.org/changeset/base/219385 Log: Unbreak the build. MFC after: 2 weeks Modified: head/sbin/hastd/pjdlog.c Modified: head/sbin/hastd/pjdlog.c ============================================================================== --- head/sbin/hastd/pjdlog.c Mon Mar 7 18:33:29 2011 (r219384) +++ head/sbin/hastd/pjdlog.c Mon Mar 7 19:54:51 2011 (r219385) @@ -95,19 +95,19 @@ static int pjdlog_printf_render_sockaddr(struct __printf_io *io, const struct printf_info *pi, const void * const *arg) { - const struct sockaddr *sa; + const struct sockaddr_storage *ss; char buf[64]; int ret; - sa = *(const struct sockaddr * const *)arg[0]; - switch (sa->sa_family) { + ss = *(const struct sockaddr_storage * const *)arg[0]; + switch (ss->ss_family) { case AF_INET: { const struct sockaddr_in *sin; in_addr_t ip; unsigned int port; - sin = (const struct sockaddr_in *)sa; + sin = (const struct sockaddr_in *)ss; ip = ntohl(sin->sin_addr.s_addr); port = ntohs(sin->sin_port); @@ -118,7 +118,7 @@ pjdlog_printf_render_sockaddr(struct __p } default: snprintf(buf, sizeof(buf), "[unsupported family %u]", - (unsigned int)sa->sa_family); + (unsigned int)ss->ss_family); break; } ret = __printf_out(io, pi, buf, strlen(buf));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103071954.p27JspWM045517>