From 0a5277b374526420cf57251167c6de3d5d193fde Mon Sep 17 00:00:00 2001 From: Evan Lloyd New-Schmidt Date: Sun, 30 Aug 2020 14:18:11 -0700 Subject: [PATCH] Unconst port int Oddly the increased compiler warnings didn't reveal this issue... the iteration on line 308 gave me a warning in my editor. --- src/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.c b/src/server.c index 57c6c03..fc35869 100644 --- a/src/server.c +++ b/src/server.c @@ -293,7 +293,7 @@ int main(int argc, char *argv[]) { pthread_t tid; /* Socket settings */ - const int port = 45011; + int port = 45011; listenfd = socket(AF_INET, SOCK_STREAM, 0); serv_addr.sin_family = AF_INET; serv_addr.sin_addr.s_addr = htonl(INADDR_ANY);