summaryrefslogtreecommitdiff
path: root/lib/opencdk/new-packet.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2009-08-27 17:02:17 -0700
committerSimon Josefsson <simon@josefsson.org>2009-08-28 14:59:33 +0200
commitb07f58ce787e9508d6ee33fbe6001ea81987390f (patch)
treef2b103ff550680b98e332122f5b1fd77e509ebcd /lib/opencdk/new-packet.c
parent2a92130c7b3286f14db53b539408df8ac41840fc (diff)
downloadgnutls-b07f58ce787e9508d6ee33fbe6001ea81987390f.tar.gz
Fix compiler warning bugs for OpenWatcom.
Signed-off-by: Simon Josefsson <simon@josefsson.org>
Diffstat (limited to 'lib/opencdk/new-packet.c')
-rw-r--r--lib/opencdk/new-packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/opencdk/new-packet.c b/lib/opencdk/new-packet.c
index 501d65293f..9159af0043 100644
--- a/lib/opencdk/new-packet.c
+++ b/lib/opencdk/new-packet.c
@@ -388,7 +388,7 @@ _cdk_copy_userid (cdk_pkt_userid_t * dst, cdk_pkt_userid_t src)
u = cdk_calloc (1, sizeof *u + strlen (src->name) + 2);
if (!u)
return CDK_Out_Of_Core;
- u->name = (void*)u + sizeof(*u);
+ u->name = (char*)u + sizeof(*u);
memcpy (u, src, sizeof *u);
memcpy (u->name, src->name, strlen (src->name));
@@ -627,7 +627,7 @@ cdk_subpkt_new (size_t size)
s = cdk_calloc (1, sizeof *s + size + 2);
if (!s)
return NULL;
- s->d = (void*)s + sizeof(*s);
+ s->d = (char*)s + sizeof(*s);
return s;
}