net: fix latent bug in _info example.
Ben Hutchings points out that struct sockaddr isn't large enough to hold a struct sockaddr_in6. Our example works because we only access the family field, but anyone extending it might be surprised; use a union instead.
Showing
Please register or sign in to comment