aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2010-08-08 17:37:46 +0000
committerdos-reis <gdr@axiomatics.org>2010-08-08 17:37:46 +0000
commit13112984fd32d4684959a923497a9a476981283e (patch)
tree05c9b0a7efa76555aec9b49abf9203f4c1d462bf /src/lib
parent45103d600768000e5c242fe478ff9468526bb8f6 (diff)
downloadopen-axiom-13112984fd32d4684959a923497a9a476981283e.tar.gz
* hyper/ex2ht.c (strPrefix): Be const-correct.
* hyper/htinp.c (get_graph_output): Likewise. (print_paste): Likewise. (print_graph_paste): Likewise. * hyper/initx.c (get_color): Likewise. * hyper/keyin.c (handle_key): Likewise. * hyper/lex.c (token_table): Likewise. * hyper/macro.c (number): Likewise. * hyper/mem.c (alloc_page): Likewise. * hyper/parse-aux.c (make_special_page): Likewise. (is_number): Likewise. * hyper/parse-types.c (errmess): Likewise. * lib/sockio-c.c (oa_socket_read): Cast to second argument to appropriate type. (oa_socket_read_byte): Likewise.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/sockio-c.c4
-rw-r--r--src/lib/util.c1
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"