summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-07-08 22:51:15 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-07-08 22:51:15 -0700
commitcb353969721e3fa3421f44d2c3caa66d9e26330f (patch)
tree15a640fb35bb4f4d5b9947bead86e4836c2fd090 /src/modules
parent9fe586bcac581b3b2a2013a34907e1817b3f24bb (diff)
modules/rkt: switch to inet_addr()
This is available in win32, unlike inet_aton()
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/rkt/rkt_scener.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/rkt/rkt_scener.c b/src/modules/rkt/rkt_scener.c
index e8fa67f..0c0b4ed 100644
--- a/src/modules/rkt/rkt_scener.c
+++ b/src/modules/rkt/rkt_scener.c
@@ -85,7 +85,7 @@ int rkt_scener_startup(rkt_context_t *ctxt)
addr.sin_family = AF_INET;
addr.sin_port = htons(setup->scener_port);
- inet_aton(setup->scener_address, (struct in_addr *)&addr.sin_addr.s_addr);
+ addr.sin_addr.s_addr = inet_addr(setup->scener_address);
if (bind(scener->listener, (struct sockaddr *)&addr, sizeof(addr)) == -1)
goto _err_close;
© All Rights Reserved