Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/netpgp/dist/src/libmj fix up 64-bit lint
details: https://anonhg.NetBSD.org/src/rev/c2be81b0ad82
branches: trunk
changeset: 756893:c2be81b0ad82
user: agc <agc%NetBSD.org@localhost>
date: Sat Aug 07 04:53:56 2010 +0000
description:
fix up 64-bit lint
diffstat:
crypto/external/bsd/netpgp/dist/src/libmj/mj.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (44 lines):
diff -r e32c5b110f95 -r c2be81b0ad82 crypto/external/bsd/netpgp/dist/src/libmj/mj.c
--- a/crypto/external/bsd/netpgp/dist/src/libmj/mj.c Sat Aug 07 04:50:35 2010 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/libmj/mj.c Sat Aug 07 04:53:56 2010 +0000
@@ -44,7 +44,7 @@
int i;
if (n < 0) {
- n = strlen(s);
+ n = (int)strlen(s);
}
NEWARRAY(char, cp, (n * 2) + 1, "strnsave", return NULL);
if (esc) {
@@ -107,7 +107,7 @@
{
atom->type = MJ_STRING;
atom->value.s = strnsave(s, -1, 1);
- atom->c = strlen(atom->value.s);
+ atom->c = (unsigned)strlen(atom->value.s);
}
#define MJ_OPEN_BRACKET (MJ_OBJECT + 1) /* 8 */
@@ -265,11 +265,11 @@
switch(atom->type = *tok = gettok(s, from, to, tok)) {
case MJ_NUMBER:
atom->value.s = strnsave(&s[*from], *to - *from, 1);
- atom->c = atom->size = strlen(atom->value.s);
+ atom->c = atom->size = (unsigned)strlen(atom->value.s);
return gettok(s, from, to, tok);
case MJ_STRING:
atom->value.s = strnsave(&s[*from + 1], *to - *from - 2, 1);
- atom->c = atom->size = strlen(atom->value.s);
+ atom->c = atom->size = (unsigned)strlen(atom->value.s);
return gettok(s, from, to, tok);
case MJ_NULL:
case MJ_FALSE:
@@ -351,7 +351,7 @@
case MJ_NUMBER:
(void) memcpy(dst, src, sizeof(*dst));
dst->value.s = strnsave(src->value.s, -1, 0);
- dst->c = dst->size = strlen(dst->value.s);
+ dst->c = dst->size = (unsigned)strlen(dst->value.s);
return 1;
case MJ_ARRAY:
case MJ_OBJECT:
Home |
Main Index |
Thread Index |
Old Index