X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=client%2Fclient.c;h=f727e5c0e62333501d298d2d2dfb795d047750c2;hb=413ba1f52face6dc6c160b24e64eb650591784ac;hp=dc06c98c59d3ea321b652a078938391067b56f95;hpb=044d170f0a963555486df54653cd2fdc5815928b;p=yaz-moved-to-github.git 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;