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

Dag-Erling Smørgrav des at
Mon Aug 9 08:43:56 UTC 2010

Jilles Tjoelker <jilles at> writes:
> In other cases, I propose adding a cast to void * in between, like
>   (struct sockaddr_in *)(void *)ai->ai_addr

Better to cast through uintptr_t.  Perhaps we should have a
__DECONST-like macro for this?

#define __ALIGNED_CAST(t, v) ((t)(uintptr_t)(v))

Dag-Erling Smørgrav - des at

More information about the svn-src-all mailing list