From de5c245d0b337272b2a6aba903113c94f05c3ade Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Fri, 7 Dec 2007 10:08:41 +0000 Subject: comparison betweem signed and unsigned --- usr.sbin/snmpd/ber.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/snmpd') 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 @@ -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) -- cgit v1.2.3