[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdeadmin/knetworkconf/knetworkconf
From:       Adriaan de Groot <groot () kde ! org>
Date:       2006-01-10 0:43:06
Message-ID: 1136853786.289252.11902.nullmailer () svn ! kde ! org
[Download RAW message or body]

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: kde@freebsd.org


 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)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic