Re:What If I Don't Actually Like My Users? (2008)
by sjolsen on Friday June 03, 2016 @02:24AM
(#11828683)
I don't think the complaint is that the compiler won't accept a struct sockaddr_in* where the API expects a struct sockaddr* . I think the complaint is that the API is designed in such a way that obtaining the required struct sockaddr* involves casting between incompatible types. There are more robust ways of doing type erasure, even in C.
[ Parent
| on HN ]
There are no comments on this comment yet.