$OpenBSD: patch-src_sensors_network_cpp,v 1.3 2013/06/08 09:10:07 zhuk Exp $
--- src/sensors/network.cpp.orig	Tue May 28 23:30:38 2013
+++ src/sensors/network.cpp	Sat Jun  8 13:09:01 2013
@@ -96,7 +96,7 @@ void NetworkSensor::refreshDevice() {
         QString line = t.readLine();   // finally reads something we care about
 
         QStringList::ConstIterator listEnd(interfaceList.constEnd());
-        while ((rank != 0) && (line != 0)) {
+        while ((rank != 0) && !line.isNull()) {
             int i = 0;
             for (QStringList::ConstIterator dev = interfaceList.constBegin();
                 (dev != listEnd) && (i < rank);
@@ -151,7 +151,7 @@ void NetworkSensor::getInOutBytes(unsigned long &in, u
         QTextStream t(&file);          // use a text stream
         line = t.readLine();
 
-        while (line != 0 && !line.contains(device)) {
+        while (!line.isNull() && !line.contains(device)) {
             line = t.readLine();
         }
 
