diff options
author | Martijn van Duren <martijn@cvs.openbsd.org> | 2023-11-12 20:06:54 +0000 |
---|---|---|
committer | Martijn van Duren <martijn@cvs.openbsd.org> | 2023-11-12 20:06:54 +0000 |
commit | 076633368e084c7b0ab99d2522c946e13977645f (patch) | |
tree | 3c4fded30a417d60b7d29ab63b641bc5f152207a /usr.sbin | |
parent | 5ef9dbe5e2db3e5e8da4a4f686118141de6d2627 (diff) |
Let MIBDECL() make use of OID(). This gives use bo_n for free and we
won't have to rely on error-prone smi_oidlen.
OK tb@
Diffstat (limited to 'usr.sbin')
-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 461ef2f20c7..6b03e7c9694 100644 --- a/usr.sbin/snmpd/snmpd.h +++ b/usr.sbin/snmpd/snmpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: snmpd.h,v 1.110 2023/11/12 20:04:35 martijn Exp $ */ +/* $OpenBSD: snmpd.h,v 1.111 2023/11/12 20:06:53 martijn Exp $ */ /* * Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org> @@ -217,7 +217,7 @@ struct oid { #define OID(...) (struct ber_oid){ { __VA_ARGS__ }, \ (sizeof((uint32_t []) { __VA_ARGS__ }) / sizeof(uint32_t)) } -#define MIBDECL(...) { { MIB_##__VA_ARGS__ } }, #__VA_ARGS__ +#define MIBDECL(...) OID(MIB_##__VA_ARGS__), #__VA_ARGS__ #define MIB(...) { { MIB_##__VA_ARGS__ } }, NULL #define MIBEND { { 0 } }, NULL |