server.c: simplify error detection for bind()