summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/autodetection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/autodetection.cpp')
-rw-r--r--rbutil/rbutilqt/autodetection.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/rbutil/rbutilqt/autodetection.cpp b/rbutil/rbutilqt/autodetection.cpp
index c16b6976cc..dc1bb72428 100644
--- a/rbutil/rbutilqt/autodetection.cpp
+++ b/rbutil/rbutilqt/autodetection.cpp
@@ -155,22 +155,22 @@ QStringList Autodetection::getMountpoints()
155 tempList << list.at(i).absolutePath(); 155 tempList << list.at(i).absolutePath();
156 } 156 }
157 return tempList; 157 return tempList;
158 158
159#elif defined(Q_OS_MACX) 159#elif defined(Q_OS_MACX)
160 QDir dir("/Volumes"); 160 QDir dir("/Volumes");
161 return dir.entryList(); 161 return dir.entryList();
162#elif defined(Q_OS_LINUX) 162#elif defined(Q_OS_LINUX)
163 QStringList tempList; 163 QStringList tempList;
164 164
165 FILE *mn = setmntent("/etc/mtab", "r"); 165 FILE *mn = setmntent("/etc/mtab", "r");
166 if(!mn) 166 if(!mn)
167 return QStringList(""); 167 return QStringList("");
168 168
169 struct mntent *ent; 169 struct mntent *ent;
170 while((ent = getmntent(mn))) 170 while((ent = getmntent(mn)))
171 tempList << QString(ent->mnt_dir); 171 tempList << QString(ent->mnt_dir);
172 endmntent(mn); 172 endmntent(mn);
173 173
174 return tempList; 174 return tempList;
175#else 175#else
176#error Unknown Plattform 176#error Unknown Plattform
@@ -185,7 +185,7 @@ QString Autodetection::resolveMountPoint(QString device)
185 FILE *mn = setmntent("/etc/mtab", "r"); 185 FILE *mn = setmntent("/etc/mtab", "r");
186 if(!mn) 186 if(!mn)
187 return QString(""); 187 return QString("");
188 188
189 struct mntent *ent; 189 struct mntent *ent;
190 while((ent = getmntent(mn))) { 190 while((ent = getmntent(mn))) {
191 if(QString(ent->mnt_fsname).startsWith(device) 191 if(QString(ent->mnt_fsname).startsWith(device)
@@ -221,7 +221,7 @@ bool Autodetection::detectUsb()
221 // the ini file needs to hold the IDs as hex values. 221 // the ini file needs to hold the IDs as hex values.
222 QMap<int, QString> usbids; 222 QMap<int, QString> usbids;
223 QMap<int, QString> usberror; 223 QMap<int, QString> usberror;
224 224
225 for(int i = 0; i < platforms.size(); i++) { 225 for(int i = 0; i < platforms.size(); i++) {
226 dev.beginGroup("platforms"); 226 dev.beginGroup("platforms");
227 QString target = dev.value(platforms.at(i)).toString(); 227 QString target = dev.value(platforms.at(i)).toString();