summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/conns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conns.c b/src/conns.c
index 3dc0575..2339dd1 100644
--- a/src/conns.c
+++ b/src/conns.c
@@ -51,7 +51,7 @@ initialize_conn (int client_fd, const char *ipaddr, const char *string_addr,
/*
* Allocate the space for the conn_s structure itself.
*/
- connptr = safemalloc (sizeof (struct conn_s));
+ connptr = (struct conn_s *)safemalloc (sizeof (struct conn_s));
if (!connptr)
goto error_exit;