diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-10-16 13:33:11 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-10-16 13:33:11 +0000 |
commit | 908b2cbfaf3689db0a0ad08cacd6eea6f7f3bb30 (patch) | |
tree | 260965eb765200bd4783350b8b81960d2f9921c5 /libexec/snmpd/snmpd_metrics | |
parent | cb8e68ed92cdffe1a53d14ed40ef5d3a340c4e36 (diff) |
don't use | operator where || was intended
ok gnezdo@ kn@ martijn@
Diffstat (limited to 'libexec/snmpd/snmpd_metrics')
-rw-r--r-- | libexec/snmpd/snmpd_metrics/mib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/snmpd/snmpd_metrics/mib.c b/libexec/snmpd/snmpd_metrics/mib.c index cf588196ca3..150da0b7131 100644 --- a/libexec/snmpd/snmpd_metrics/mib.c +++ b/libexec/snmpd/snmpd_metrics/mib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mib.c,v 1.1 2022/09/01 14:20:34 martijn Exp $ */ +/* $OpenBSD: mib.c,v 1.2 2022/10/16 13:33:10 jsg Exp $ */ /* * Copyright (c) 2022 Martijn van Duren <martijn@openbsd.org> @@ -3325,7 +3325,7 @@ main(int argc, char *argv[]) if ((hrDeviceIndex = agentx_object(host, AGENTX_OID(HRDEVICEINDEX), &hrDeviceIdx, 1, 0, mib_hrdevice)) == NULL || (hrDeviceType = agentx_object(host, AGENTX_OID(HRDEVICETYPE), - &hrDeviceIdx, 1, 0, mib_hrdevice)) == NULL | + &hrDeviceIdx, 1, 0, mib_hrdevice)) == NULL || (hrDeviceDescr = agentx_object(host, AGENTX_OID(HRDEVICEDESCR), &hrDeviceIdx, 1, 0, mib_hrdevice)) == NULL || (hrDeviceID = agentx_object(host, AGENTX_OID(HRDEVICEID), |