summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2019-08-29 03:08:50 +0000
committerdlg <dlg@openbsd.org>2019-08-29 03:08:50 +0000
commitda9583c4e12249bf994ef2d8301e2fbc4fe79963 (patch)
tree9c68727280962f6f2354f5d0381c85f32068840e
parentmake the list of OM fibre distances go OM1, OM2, OM3, not OM2, OM1, OM3 (diff)
downloadwireguard-openbsd-da9583c4e12249bf994ef2d8301e2fbc4fe79963.tar.xz
wireguard-openbsd-da9583c4e12249bf994ef2d8301e2fbc4fe79963.zip
fix a comparison which generated a warning on sparc64.
found by deraadt@
-rw-r--r--sbin/ifconfig/sff.c4
1 files changed, 2 insertions, 2 deletions
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 <dlg@openbsd.org>
@@ -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