From 75d8c07d9c16fa8077da81e373d7c7d03758a1df Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Thu, 4 Aug 2016 19:42:50 +1000 Subject: [PATCH] Oops... --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 10e3136..ff7441a 100644 --- a/main.c +++ b/main.c @@ -324,7 +324,6 @@ void server(int port) { int socket_desc, client_sock, c, *new_sock; int pid; struct sockaddr_in server, client; - struct stat s; sa.sa_handler = sigchld_handler; // reap all dead processes sigemptyset(&sa.sa_mask); @@ -393,6 +392,7 @@ int main(int argc, char **argv) { int i; int main_pid; FILE *fptr; + struct stat s; if (argc < 3) { fprintf(stderr, "Usage ./magicka config/bbs.ini port\n");