diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-12-07 10:08:41 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-12-07 10:08:41 +0000 |
commit | de5c245d0b337272b2a6aba903113c94f05c3ade (patch) | |
tree | b59f6f5973e30c139704a22d7c4db14c7536538b | |
parent | 31554520542dd5f92ce73cde2156304054423b5b (diff) |
comparison betweem signed and unsigned
-rw-r--r-- | usr.sbin/snmpd/ber.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/snmpd/ber.c b/usr.sbin/snmpd/ber.c index 4db46def32a..ddc24f1f361 100644 --- a/usr.sbin/snmpd/ber.c +++ b/usr.sbin/snmpd/ber.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ber.c,v 1.3 2007/12/07 09:50:51 reyk Exp $ */ +/* $OpenBSD: ber.c,v 1.4 2007/12/07 10:08:40 reyk Exp $ */ /* * Copyright (c) 2007 Reyk Floeter <reyk@vantronix.net> @@ -1018,7 +1018,7 @@ ber_read_element(struct ber *ber, struct ber_element *elm) case BER_TYPE_BOOLEAN: case BER_TYPE_INTEGER: case BER_TYPE_ENUMERATED: - if (len > (u_int)sizeof(long long)) + if (len > (ssize_t)sizeof(long long)) return -1; for (i = 0; i < len; i++) { if (ber_getc(ber, &c) != 1) |