summaryrefslogtreecommitdiff
path: root/bin/md5
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-05-10 19:48:08 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-05-10 19:48:08 +0000
commit6d73087df1112752c4e5873d7760c5354b01e1d5 (patch)
treef10363f1cfac52ad29d65696a31d37f94cb7d96a /bin/md5
parent86fd8760f9f8dfd4c5ff434eec703d7770e70566 (diff)
64 bit gcc whines
Diffstat (limited to 'bin/md5')
-rw-r--r--bin/md5/crc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/bin/md5/crc.c b/bin/md5/crc.c
index 77a393a1056..d322f342e93 100644
--- a/bin/md5/crc.c
+++ b/bin/md5/crc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crc.c,v 1.1 2004/05/02 17:53:29 millert Exp $ */
+/* $OpenBSD: crc.c,v 1.2 2004/05/10 19:48:07 deraadt Exp $ */
/*
* Copyright (c) 2004 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -17,7 +17,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: crc.c,v 1.1 2004/05/02 17:53:29 millert Exp $";
+static const char rcsid[] = "$OpenBSD: crc.c,v 1.2 2004/05/10 19:48:07 deraadt Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -133,8 +133,8 @@ CKSUM_End(CKSUM_CTX *ctx, char *outstr)
if (asprintf(&outstr, "%u %lld", ctx->crc, ctx->len) == -1)
return (NULL);
} else {
- (void)snprintf(outstr, CKSUM_DIGEST_STRING_LENGTH, "%u %lld",
- ctx->crc, ctx->len);
+ (void)snprintf(outstr, (size_t)CKSUM_DIGEST_STRING_LENGTH,
+ "%u %lld", ctx->crc, ctx->len);
}
return (outstr);
@@ -174,8 +174,8 @@ SUM_End(SUM_CTX *ctx, char *outstr)
if (asprintf(&outstr, "%u %lld", ctx->crc, ctx->len) == -1)
return (NULL);
} else {
- (void)snprintf(outstr, SUM_DIGEST_STRING_LENGTH, "%u %lld",
- ctx->crc, ctx->len);
+ (void)snprintf(outstr, (size_t)SUM_DIGEST_STRING_LENGTH,
+ "%u %lld", ctx->crc, ctx->len);
}
return (outstr);
@@ -215,8 +215,8 @@ SYSVSUM_End(SYSVSUM_CTX *ctx, char *outstr)
if (asprintf(&outstr, "%u %lld", ctx->crc, ctx->len) == -1)
return (NULL);
} else {
- (void)snprintf(outstr, SYSVSUM_DIGEST_STRING_LENGTH, "%u %lld",
- ctx->crc, ctx->len);
+ (void)snprintf(outstr, (size_t)SYSVSUM_DIGEST_STRING_LENGTH,
+ "%u %lld", ctx->crc, ctx->len);
}
return (outstr);