From 2add8086ddc31a42a1eab9a088ec2b67a6930511 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Thu, 29 Aug 2019 03:08:51 +0000 Subject: fix a comparison which generated a warning on sparc64. found by deraadt@ --- sbin/ifconfig/sff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/ifconfig/sff.c') diff --git a/sbin/ifconfig/sff.c b/sbin/ifconfig/sff.c index 7569883f8fb..a2f636de835 100644 --- a/sbin/ifconfig/sff.c +++ b/sbin/ifconfig/sff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sff.c,v 1.19 2019/08/29 02:05:58 dlg Exp $ */ +/* $OpenBSD: sff.c,v 1.20 2019/08/29 03:08:50 dlg Exp $ */ /* * Copyright (c) 2019 David Gwynne @@ -599,7 +599,7 @@ if_sff_printmedia(const struct if_sffpage *pg, const struct sff_media_map *m) } if (m->dist_smf_m != 0 && - pg->sff_data[m->dist_smf_m] < 0 && + pg->sff_data[m->dist_smf_m] > 0 && pg->sff_data[m->dist_smf_m] < 255) if_sff_printdist("m SMF", pg->sff_data[m->dist_smf_m], 100); else -- cgit v1.2.3