diff options
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) |