diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2019-08-29 03:08:51 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2019-08-29 03:08:51 +0000 |
commit | 2add8086ddc31a42a1eab9a088ec2b67a6930511 (patch) | |
tree | f7ce636f5d4d4ffcf4a746b88137df1161c2d680 /sbin/ifconfig/sff.c | |
parent | efd9ac3a72f1e9e786d5e66f00066eabb6076e2e (diff) |
fix a comparison which generated a warning on sparc64.
found by deraadt@
Diffstat (limited to 'sbin/ifconfig/sff.c')
-rw-r--r-- | sbin/ifconfig/sff.c | 4 |
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 |