svn commit: r211023 - head/usr.sbin/syslogd

Hiroki Sato hrs at FreeBSD.org
Tue Aug 10 17:33:42 UTC 2010


Oliver Fromme <olli at fromme.com> wrote
  in <201008101623.o7AGNs7I042679 at haluter.fromme.com>:

ol> -static int	validate(struct sockaddr *, const char *);
ol> -static void	unmapped(struct sockaddr *);
ol> +static int	validate(struct sockaddr_storage *, const char *);
ol> +static void	unmapped(struct sockaddr_storage *);

 Why is s/struct sockaddr */struct sockaddr_storage */ needed here?
 Using (struct sockaddr *) as an argument looks reasonable to me since
 the struct sockaddr_storage is mostly for memory allocation, not for
 access via pointer.

-- Hiroki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20100810/9d7d5e09/attachment.pgp


More information about the svn-src-all mailing list