From 181c1305382ad221fabec210497f656bc06bd590 Mon Sep 17 00:00:00 2001 From: jsg Date: Sun, 16 Oct 2022 13:33:10 +0000 Subject: [PATCH] don't use | operator where || was intended ok gnezdo@ kn@ martijn@ --- libexec/snmpd/snmpd_metrics/mib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/snmpd/snmpd_metrics/mib.c b/libexec/snmpd/snmpd_metrics/mib.c index eeedb1e0714..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.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 @@ -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), -- 2.20.1