From 6d73087df1112752c4e5873d7760c5354b01e1d5 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 10 May 2004 19:48:08 +0000 Subject: 64 bit gcc whines --- bin/md5/crc.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'bin/md5/crc.c') 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 @@ -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 @@ -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); -- cgit v1.2.3