Permalink
Browse files

Add missing cast in `bind` call.

  • Loading branch information...
1 parent 2e7066a commit 034679537f63246a9ec0e2cf595a531ba98d9449 @jonm committed Oct 10, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/comm.c
View
@@ -752,7 +752,7 @@ int init_socket(int port)
assert(0);
}
- if (bind(s, &sa, sizeof(sa)) < 0) {
+ if (bind(s, (struct sockaddr *)&sa, sizeof(sa)) < 0) {
perror("bind");
exit(0);
}

0 comments on commit 0346795

Please sign in to comment.