pclose instead fclose

This commit is contained in:
2022-01-26 15:44:32 +01:00
parent c942f36e49
commit f2db85aa33
5 changed files with 10 additions and 8 deletions

View File

@ -289,7 +289,6 @@ void reHDD::filterNewDrives(list <Drive>* plistOldDrives, list <Drive>* plistNew
*/
void reHDD::searchDrives(list <Drive>* plistDrives)
{
// cout << "search drives ..." << endl;
Logger::logThis()->info("--> search drives <--");
char * cLine = NULL;
size_t len = 0;
@ -310,10 +309,10 @@ void reHDD::searchDrives(list <Drive>* plistDrives)
tmpDrive->state = Drive::NONE;
tmpDrive->bIsOffline = false;
plistDrives->push_back(*tmpDrive);
Logger::logThis()->info("drive found: " + tmpDrive->getPath());
//Logger::logThis()->info("drive found: " + tmpDrive->getPath());
}
}
fclose(outputfileHwinfo);
pclose(outputfileHwinfo);
}
/**
@ -378,7 +377,7 @@ void reHDD::filterIgnoredDrives(list <Drive>* plistDrives)
//cout << "blkid uuid:" << sUUID << endl;
}
}
fclose(outputfileBlkid);
pclose(outputfileBlkid);
//cout << "blkid uuid:" << sUUID << endl;
if (get<1>(row).compare(sUUID)) //compare uuid from ignore file and uuid from drive