diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2017-07-28 13:17:44 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2017-07-28 13:17:44 +0000 |
commit | d7c385368a7cb0365e12b776696cb6ca629389ef (patch) | |
tree | ae34a2dcc0471d1aaa844dd8220152301e0a8054 | |
parent | c3e514a2ab1ef7c8790ed58c54e2199f378f9a91 (diff) |
Make the engine id is just binary data so make it uint8_t.
clang pointed out that we tried to store 128 in a signed char.
OK gerhard
-rw-r--r-- | usr.sbin/snmpd/snmpd.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/snmpd/snmpd.h b/usr.sbin/snmpd/snmpd.h index 91186f23e42..b4e15bbbec1 100644 --- a/usr.sbin/snmpd/snmpd.h +++ b/usr.sbin/snmpd/snmpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: snmpd.h,v 1.75 2017/04/21 13:50:23 jca Exp $ */ +/* $OpenBSD: snmpd.h,v 1.76 2017/07/28 13:17:43 florian Exp $ */ /* * Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org> @@ -438,7 +438,7 @@ struct snmp_message { long long sm_secmodel; u_int32_t sm_engine_boots; u_int32_t sm_engine_time; - char sm_ctxengineid[SNMPD_MAXENGINEIDLEN]; + uint8_t sm_ctxengineid[SNMPD_MAXENGINEIDLEN]; size_t sm_ctxengineid_len; char sm_ctxname[SNMPD_MAXCONTEXNAMELEN+1]; @@ -574,7 +574,7 @@ struct snmpd { char sc_rwcommunity[SNMPD_MAXCOMMUNITYLEN]; char sc_trcommunity[SNMPD_MAXCOMMUNITYLEN]; - char sc_engineid[SNMPD_MAXENGINEIDLEN]; + uint8_t sc_engineid[SNMPD_MAXENGINEIDLEN]; size_t sc_engineid_len; struct snmp_stats sc_stats; |