diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2003-07-31 23:38:28 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2003-07-31 23:38:28 +0000 |
commit | 6aaa863432967b99d0e2c87116b4ec844b90436f (patch) | |
tree | 40d8a50800514332aab7e469c351e4491cab6dfe /src/conns.c | |
parent | ab02f47a297693752e1d68d5eaf914c77cfb652c (diff) |
Added appropriate casts from (void*) so that the code will compile
cleanly with a C++ compiler. (Tested using GCC 3.3)
Diffstat (limited to 'src/conns.c')
-rw-r--r-- | src/conns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conns.c b/src/conns.c index 1de8f40..f25e4f4 100644 --- a/src/conns.c +++ b/src/conns.c @@ -1,4 +1,4 @@ -/* $Id: conns.c,v 1.17 2003-05-31 23:02:21 rjkaes Exp $ +/* $Id: conns.c,v 1.18 2003-07-31 23:38:28 rjkaes Exp $ * * Create and free the connection structure. One day there could be * other connection related tasks put here, but for now the header @@ -46,7 +46,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; |