• Dan McGee's avatar
    Simplify setsockopt() casting workaround · 81768801
    Dan McGee authored
    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.
    Signed-off-by: 's avatarDan McGee <dan@archlinux.org>
    81768801
socket_util.c 2.4 KB