projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f4be2b6
)
Added a few casts to make C++ happy.
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 5 Mar 1998 08:05:10 +0000
(08:05 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 5 Mar 1998 08:05:10 +0000
(08:05 +0000)
client/client.c
patch
|
blob
|
history
diff --git
a/client/client.c
b/client/client.c
index
dc06c98
..
f727e5c
100644
(file)
--- a/
client/client.c
+++ b/
client/client.c
@@
-4,7
+4,10
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: client.c,v $
* 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
* 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;
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->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;
}
memcpy (id->buf, refid, id->len);
return id;
}
@@
-1355,7
+1358,7
@@
int cmd_refid (char *arg)
refid = NULL;
if (*arg)
{
refid = NULL;
if (*arg)
{
- refid = xmalloc (strlen(arg)+1);
+ refid = (char *) xmalloc (strlen(arg)+1);
strcpy (refid, arg);
}
return 1;
strcpy (refid, arg);
}
return 1;