On Fri, Apr 11, 2014 at 06:13:22PM +0200, Jiri Benc wrote:
> 
> It's the first member of the union. I originally had only struct
> sockaddr_storage here but it led to horrible typecasting in the code
> (which is quite error prone when you accidentally put an extra & before
> the variable). In the end, I added the union here, which led to a
> shorter and cleaner code, and the compiler being able to do type
> checking as a bonus.

Fair enough.

Thanks,
Richard

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to