synk

synchronize files between hosts
Log | Files | Refs | README | LICENSE

commit 06e9c0735e637b1caf7bc32415880039e303f488
parent d0b15bb852ef0841e4d4542a91d45f0cc0fd02ab
Author: Willy <willyatmailoodotorg>
Date:   Sat Sep  3 23:28:34 +0200

Put host in serverloop in network order

Diffstat:
synk.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/synk.c b/synk.c @@ -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) {