diff options
author | Mats O Jansson <maja@cvs.openbsd.org> | 2008-01-02 20:55:00 +0000 |
---|---|---|
committer | Mats O Jansson <maja@cvs.openbsd.org> | 2008-01-02 20:55:00 +0000 |
commit | 92e9ea437ff454ade88b0d9b8b30d91891fd0136 (patch) | |
tree | 43215be3d9f513e4b9deb3c27a37a731e1086f8e /usr.sbin/snmpd/snmpd.h | |
parent | 91b8c21a50838d0b4d11437505790a77dd41fd9c (diff) |
Make sure that a key belongs to the table before returning a match.
Change smi_odi_cmp to return int as expected by RB-tree. -moj
ok reyk@
Diffstat (limited to 'usr.sbin/snmpd/snmpd.h')
-rw-r--r-- | usr.sbin/snmpd/snmpd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/snmpd/snmpd.h b/usr.sbin/snmpd/snmpd.h index 6d4c7c8fb4a..989653e8091 100644 --- a/usr.sbin/snmpd/snmpd.h +++ b/usr.sbin/snmpd/snmpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: snmpd.h,v 1.8 2007/12/29 09:24:43 reyk Exp $ */ +/* $OpenBSD: snmpd.h,v 1.9 2008/01/02 20:54:59 maja Exp $ */ /* * Copyright (c) 2007 Reyk Floeter <reyk@vantronix.net> @@ -418,6 +418,6 @@ void smi_oidlen(struct ber_oid *); char *smi_oidstring(struct ber_oid *, char *, size_t); void smi_delete(struct oid *); void smi_insert(struct oid *); -long smi_oid_cmp(struct oid *, struct oid *); +int smi_oid_cmp(struct oid *, struct oid *); #endif /* _SNMPD_H */ |