tPut host in serverloop in network order - synk - synchronize files between hosts
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 06e9c0735e637b1caf7bc32415880039e303f488
(DIR) parent d0b15bb852ef0841e4d4542a91d45f0cc0fd02ab
(HTM) Author: Willy <willyatmailoodotorg>
Date: Sat, 3 Sep 2016 23:28:34 +0200
Put host in serverloop in network order
Diffstat:
M synk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/synk.c b/synk.c
t@@ -268,7 +268,7 @@ serverloop(in_addr_t host, in_port_t port)
memset(&srv, 0, sizeof(srv));
srv.sin_family = AF_INET;
- srv.sin_addr.s_addr = htonl(host);
+ srv.sin_addr.s_addr = host;
srv.sin_port = htons(port);
if (bind(sfd, (struct sockaddr *)&srv, sizeof(srv)) < 0) {