Skip to content

Commit

Permalink
Unconst port int
Browse files Browse the repository at this point in the history
Oddly the increased compiler warnings didn't reveal this issue...
the iteration on line 308 gave me a warning in my editor.
  • Loading branch information
newsch committed Aug 30, 2020
1 parent 1e4c0df commit 0a5277b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0a5277b

Please sign in to comment.