summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@nokia.com>2010-10-01 09:14:22 +1000
committerLorn Potter <lorn.potter@nokia.com>2010-10-01 09:14:22 +1000
commit079a2b6bd9ef3b5190371b088e3ba786e7d508df (patch)
tree5c4de8b7580cabf9309a945df2bed1e07b1c3948
parent701233b072663179256e5687aa5913d4ea63c0e1 (diff)
fix build
-rw-r--r--src/systeminfo/qsysteminfo_linux_common.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/systeminfo/qsysteminfo_linux_common.cpp b/src/systeminfo/qsysteminfo_linux_common.cpp
index 5733fcdcd2..fe93d1b266 100644
--- a/src/systeminfo/qsysteminfo_linux_common.cpp
+++ b/src/systeminfo/qsysteminfo_linux_common.cpp
@@ -543,12 +543,12 @@ QString QSystemNetworkInfoLinuxCommonPrivate::macAddress(QSystemNetworkInfo::Net
if(fi.exists()) {
bool powered=false;
QFile linkmode(devFile+"/link_mode"); //check for dev power
- if(rxlinkmodeexists() && linkmode.open(QIODevice::ReadOnly | QIODevice::Text)) {
+ if(linkmode.exists() && linkmode.open(QIODevice::ReadOnly | QIODevice::Text)) {
QTextStream in(&linkmode);
in >> result;
if(result.contains("1"))
- ok = true;
- rx.close();
+ powered = true;
+ linkmode.close();
}
QFile rx(devFile + "/address");
@@ -556,7 +556,7 @@ QString QSystemNetworkInfoLinuxCommonPrivate::macAddress(QSystemNetworkInfo::Net
QTextStream in(&rx);
in >> result;
rx.close();
- if(ok)
+ if(powered)
return result;
}
}