Fix printf of sa_family_t variables.
sa_family_t is different sizes on different platforms (eg unsigned char on osx; unsigned short on linux). For portability, cast to uintmax_t, since we're guaranteed to avoid loss of precision, and then use the format specifier for that type.
Loading
Please register or sign in to comment