From 413ba1f52face6dc6c160b24e64eb650591784ac Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 5 Mar 1998 08:05:10 +0000 Subject: [PATCH] Added a few casts to make C++ happy. --- client/client.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/client/client.c b/client/client.c index dc06c98..f727e5c 100644 --- a/client/client.c +++ b/client/client.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: client.c,v $ - * Revision 1.62 1998-02-11 11:53:33 adam + * Revision 1.63 1998-03-05 08:05:10 adam + * Added a few casts to make C++ happy. + * + * Revision 1.62 1998/02/11 11:53:33 adam * Changed code so that it compiles as C++. * * Revision 1.61 1998/02/10 11:03:06 adam @@ -296,9 +299,9 @@ static Z_ReferenceId *set_refid (ODR out) Z_ReferenceId *id; if (!refid) return 0; - id = odr_malloc (out, sizeof(*id)); + id = (Z_ReferenceId *) odr_malloc (out, sizeof(*id)); id->size = id->len = strlen(refid); - id->buf = odr_malloc (out, id->len); + id->buf = (unsigned char *) odr_malloc (out, id->len); memcpy (id->buf, refid, id->len); return id; } @@ -1355,7 +1358,7 @@ int cmd_refid (char *arg) refid = NULL; if (*arg) { - refid = xmalloc (strlen(arg)+1); + refid = (char *) xmalloc (strlen(arg)+1); strcpy (refid, arg); } return 1; -- 1.7.10.4