Re: RFC 2292 CMSG_FIRSTHDR macro...

2004-05-16 Thread JINMEI Tatuya / 神明達哉
> On Wed, 28 Apr 2004 17:09:30 -0700, > "George V. Neville-Neil" <[EMAIL PROTECTED]> said: > This should be a minor nit but, is there any reason we > implement this this way: > #define CMSG_FIRSTHDR(mhdr) ((struct cmsghdr *)(mhdr)->msg_control) > instead of this wa

RFC 2292 CMSG_FIRSTHDR macro...

2004-04-28 Thread George V. Neville-Neil
Howdy, This should be a minor nit but, is there any reason we implement this this way: #define CMSG_FIRSTHDR(mhdr) ((struct cmsghdr *)(mhdr)->msg_control) instead of this way: #define CMSG_FIRSTHDR(mhdr) \ ( (mhdr)->msg_controllen >= sizeof(struct cmsghdr) ? \