diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/sockio-c.c | 4 | ||||
-rw-r--r-- | src/lib/util.c | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/sockio-c.c b/src/lib/sockio-c.c index 365e88eb..853ecd91 100644 --- a/src/lib/sockio-c.c +++ b/src/lib/sockio-c.c @@ -390,7 +390,7 @@ oa_connect_ip_port_stream(const openaxiom_byte* addr, int prot, OPENAXIOM_EXPORT int oa_socket_read(openaxiom_socket sock, openaxiom_byte* buf, int size) { - return recv(sock, buf, size, 0); + return recv(sock, (char*) buf, size, 0); } /* Attempt to read a byte from scoket `sock'. @@ -412,7 +412,7 @@ oa_socket_read_byte(openaxiom_socket sock) OPENAXIOM_EXPORT int oa_socket_write(openaxiom_socket sock, const openaxiom_byte* buf, int size) { - return send(sock, buf, size, 0); + return send(sock, (const char*) buf, size, 0); } /* Send one byte to socket `sock'. */ diff --git a/src/lib/util.c b/src/lib/util.c index 47362f7e..1fee3d04 100644 --- a/src/lib/util.c +++ b/src/lib/util.c @@ -38,6 +38,7 @@ #include <sys/types.h> #include <stdio.h> #include <errno.h> +#include <stdlib.h> #include <X11/Xlib.h> #include <X11/Xutil.h> #include "view.h" |