gcc -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations unistd/getlogin_r.c -o unistd/getlogin_r -D_POSIX_C_SOURCE=202405L -lm -lpthread -lrt -lxnet -lsocket -latomic unistd/getlogin_r.c:5:30: error: initialization of 'int (*)(char *, size_t)' {aka 'int (*)(char *, long unsigned int)'} from incompatible pointer type 'int (*)(char *, int)' [-Wincompatible-pointer-types] 5 | int (*foo)(char *, size_t) = getlogin_r; | ^~~~~~~~~~