Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/libsaslc/dist/src Fix some LP64/IPL32 is...
details: https://anonhg.NetBSD.org/src/rev/e0dbb26197c3
branches: trunk
changeset: 761991:e0dbb26197c3
user: matt <matt%NetBSD.org@localhost>
date: Sat Feb 12 22:24:01 2011 +0000
description:
Fix some LP64/IPL32 issues
diffstat:
crypto/external/bsd/libsaslc/dist/src/mech_digestmd5.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (47 lines):
diff -r 43671fe8abfa -r e0dbb26197c3 crypto/external/bsd/libsaslc/dist/src/mech_digestmd5.c
--- a/crypto/external/bsd/libsaslc/dist/src/mech_digestmd5.c Sat Feb 12 22:23:11 2011 +0000
+++ b/crypto/external/bsd/libsaslc/dist/src/mech_digestmd5.c Sat Feb 12 22:24:01 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mech_digestmd5.c,v 1.4 2011/02/11 23:44:43 christos Exp $ */
+/* $NetBSD: mech_digestmd5.c,v 1.5 2011/02/12 22:24:01 matt Exp $ */
/* Copyright (c) 2010 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -35,7 +35,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: mech_digestmd5.c,v 1.4 2011/02/11 23:44:43 christos Exp $");
+__RCSID("$NetBSD: mech_digestmd5.c,v 1.5 2011/02/12 22:24:01 matt Exp $");
#include <assert.h>
#include <md5.h>
@@ -180,7 +180,7 @@
char *realm;
cipher_t cipher;
int nonce_cnt;
- unsigned long maxbuf;
+ size_t maxbuf;
} rdata_t;
typedef uint8_t md5hash_t[MD5_DIGEST_LENGTH];
@@ -1240,8 +1240,8 @@
"cipher error");
return -1;
}
- assert(tmplen == len - 6);
- if (tmplen != len - 6)
+ assert(tmplen == (ssize_t)len - 6);
+ if (tmplen != (ssize_t)len - 6)
return -1;
}
@@ -2115,7 +2115,7 @@
}
/*FALLTHROUGH*/
case QOP_INT:
- if (asprintf(&maxbuf, "maxbuf=%zd,", ms->rdata.maxbuf) == -1) {
+ if (asprintf(&maxbuf, "maxbuf=%zu,", ms->rdata.maxbuf) == -1) {
saslc__error_set_errno(ERR(sess), ERROR_NOMEM);
goto done;
}
Home |
Main Index |
Thread Index |
Old Index