Re: [Musicpd-dev-team] [PATCH] Simplify setsockopt() casting workaround

2011-09-21 Thread Max Kellermann
On 2011/09/19 17:55, Dan McGee d...@archlinux.org wrote: On Win32, the third setsockopt parameter has type (char *) while on POSIX systems it is (void *). However, given that it is a no-op cast to go from a char pointer to a void pointer, we can cast to a char pointer (with a possible const

[Musicpd-dev-team] [PATCH] Simplify setsockopt() casting workaround

2011-09-19 Thread Dan McGee
On Win32, the third setsockopt parameter has type (char *) while on POSIX systems it is (void *). However, given that it is a no-op cast to go from a char pointer to a void pointer, we can cast to a char pointer (with a possible const modifier) on all platforms and satisfy the compiler.