diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-01-20 09:39:44 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-01-20 09:39:44 +0100 |
commit | f850e6dbf63327458726bb5682cef119b2578875 (patch) | |
tree | 829360c05d41af14b50816290001d2ea508b2d1a /lib/opencdk | |
parent | da1887f04e7b688f3a2a6c48c255cdbe5dd074d8 (diff) | |
download | gnutls-f850e6dbf63327458726bb5682cef119b2578875.tar.gz |
opencdk: small fixed to reduce warnings
Diffstat (limited to 'lib/opencdk')
-rw-r--r-- | lib/opencdk/kbnode.c | 2 | ||||
-rw-r--r-- | lib/opencdk/read-packet.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/opencdk/kbnode.c b/lib/opencdk/kbnode.c index c28cb349bc..abd1d9524c 100644 --- a/lib/opencdk/kbnode.c +++ b/lib/opencdk/kbnode.c @@ -522,7 +522,7 @@ cdk_kbnode_write_to_mem(cdk_kbnode_t node, byte * buf, size_t * r_nbytes) cdk_stream_close(s); return 0; } - if (*r_nbytes < len) { + if (*r_nbytes < (size_t)len) { *r_nbytes = len; rc = CDK_Too_Short; } diff --git a/lib/opencdk/read-packet.c b/lib/opencdk/read-packet.c index becd6cb762..932c95ec41 100644 --- a/lib/opencdk/read-packet.c +++ b/lib/opencdk/read-packet.c @@ -37,7 +37,6 @@ #include <minmax.h> /* The version of the MDC packet considering the lastest OpenPGP draft. */ -#define MDC_PKT_VER 1 static int stream_read(cdk_stream_t s, void *buf, size_t buflen, size_t * r_nread) |