[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[leafnode-list] Re: leafnode 1.11.8 release candidate #1



> Matthias Andree:

> GCC was trying to convey that I'd used a cast to reinterpret a
> structure as a different one, and dereferenced its members.
>
> ...
>
> -    char addr[128]; /* RATS: ignore */
> +    union {
> +	struct sockaddr_storage ss;
> +	struct sockaddr_in sin;
> +	struct sockaddr_in6 sin6;
> +	struct sockaddr sa;
> +    } addr;

So that's the solution.  Good to know.  Another one:  is "RATS" the
contemporary swear word or some quality assurance program like "lint"?


regards, clemens
-- 
_______________________________________________
leafnode-list mailing list
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list
http://leafnode.sourceforge.net/