ports/sysutils/trueos-libqt5/files/patch-libtrueos_utils_netif.cpp
Steve Wills b0173207e6 sysutils/trueos-libqt5: fix build
While here, pet portlint

PR:		233102
Approved by:	maintainer timeout (jt@ixsystems.com, >2 weeks)
2019-02-04 19:23:07 +00:00

14 lines
496 B
C++

--- libtrueos/utils/netif.cpp.orig 2017-08-21 16:44:14 UTC
+++ libtrueos/utils/netif.cpp
@@ -146,11 +146,6 @@ QString NetworkInterface::mediaStatusAsString()
switch (IFM_TYPE(ifm.ifm_active))
{
- case IFM_FDDI:
- case IFM_TOKEN:
- if (ifm.ifm_status & IFM_ACTIVE) status = "inserted";
- else status = "no ring";
- break;
case IFM_IEEE80211:
if (ifm.ifm_status & IFM_ACTIVE) status = "associated";
else status = "no carrier";