modified server.c for clang