summaryrefslogtreecommitdiff
path: root/src/libstddjb/socket_bind4.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/socket_bind4.c')
-rw-r--r--src/libstddjb/socket_bind4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstddjb/socket_bind4.c b/src/libstddjb/socket_bind4.c
index e9c9593..1078fbc 100644
--- a/src/libstddjb/socket_bind4.c
+++ b/src/libstddjb/socket_bind4.c
@@ -14,6 +14,6 @@ int socket_bind4 (int s, char const *ip, uint16 port)
sa.sin_family = AF_INET ;
uint16_big_endian((char *)&port, 1) ;
sa.sin_port = port ;
- byte_copy(&sa.sin_addr.s_addr, 4, ip) ;
+ byte_copy((char *)&sa.sin_addr.s_addr, 4, ip) ;
return bind(s, (struct sockaddr *)&sa, sizeof sa) ;
}