summaryrefslogtreecommitdiff
path: root/sockets.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-05-12 19:11:30 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-05-12 19:11:30 +0100
commit34836ab2c9124e17d80bd8e8a1601398297391a8 (patch)
tree3079a0db3bc95c105c04b7730ef0d4c2c4af29c4 /sockets.c
parent62fe87f6052dc28e38f2edc940b2002ede087277 (diff)
Make client port configurable and move settings structure to be initialised in main() instead of dochat().
Diffstat (limited to 'sockets.c')
-rw-r--r--sockets.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sockets.c b/sockets.c
index 142be21..fd733b8 100644
--- a/sockets.c
+++ b/sockets.c
@@ -56,8 +56,6 @@ int createserversocket(char *host, char *port) {
// Create listening socket to listen for bouncer client connections
int createclientsocket(char *listenport) {
- listenport = BOUNCERLISTENPORT;
-
int listener; // listening socket descriptor
int rv; // return value for getaddrinfo (for error message)
struct addrinfo hints, *ai, *p;