SVN commit 496197 by adridg:
Remove some comments left over from a previous incarnation.
On FreeBSD, don't do the Linux thing of trying to parse a /proc file, just
ignore it entirely. This suggests that there needs to be a backends/ script to
handle the routing info, but that's more work than just disabling a superfluous
error message right now.
CCMAIL: [EMAIL PROTECTED]
M +2 -4 knetworkconfigparser.cpp
---
branches/KDE/3.5/kdeadmin/knetworkconf/knetworkconf/knetworkconfigparser.cpp
#496196:496197
@@ -183,18 +183,16 @@
file instead of the gw configured by dhcp.
*/
void KNetworkConfigParser::loadRoutingInfo( KRoutingInfo *routingInfo){
-// routingInfo = NULL;
+#ifndef Q_OS_FREEBSD
QFile f( "/proc/net/route");
if ( !f.open(IO_ReadOnly) )
{
-// return routingInfo;
KMessageBox::error(0,
i18n("Could not open file /proc/net/route."),
i18n("Could Not Open File"));
}
else
{
-// routingInfo = new KRoutingInfo();
QTextStream t( &f ); // use a text stream
QString s;
while (!t.eof())
@@ -207,12 +205,12 @@
if (destination == "00000000")
{
routingInfo->setGateway(hexIPv4ToDecIPv4(gw));
-// routingInfo->setGateway(gw);
routingInfo->setGatewayDevice(interface);
}
}
}
f.close();
+#endif
}
QString
KNetworkConfigParser::hexIPv4ToDecIPv4(const QString &hex)
_______________________________________________
kde-freebsd mailing list
[email protected]
http://freebsd.kde.org/mailman/listinfo/kde-freebsd