forked from localhorst/reHDD
autoformat all sources
This commit is contained in:
@ -12,11 +12,11 @@
|
||||
* \param pointer of Drive instance
|
||||
* \return void
|
||||
*/
|
||||
void Delete::deleteDrive(Drive* drive)
|
||||
void Delete::deleteDrive(Drive *drive)
|
||||
|
||||
{
|
||||
size_t len = 0; //lenght of found line
|
||||
char* cLine = NULL; //found line
|
||||
size_t len = 0; // lenght of found line
|
||||
char *cLine = NULL; // found line
|
||||
|
||||
#ifndef DRYRUN
|
||||
string sCMD = ("wipefs -af ");
|
||||
@ -25,18 +25,18 @@ void Delete::deleteDrive(Drive* drive)
|
||||
#endif
|
||||
|
||||
#ifdef DRYRUN
|
||||
//cout << "dryrun for " << drive->getPath() << endl;
|
||||
// cout << "dryrun for " << drive->getPath() << endl;
|
||||
string sCMD = ("echo");
|
||||
#endif
|
||||
|
||||
const char* cpComand = sCMD.c_str();
|
||||
//cout << "delete: " << cpComand << endl;
|
||||
const char *cpComand = sCMD.c_str();
|
||||
// cout << "delete: " << cpComand << endl;
|
||||
|
||||
FILE* deleteCmdOutput = popen(cpComand, "r");
|
||||
FILE *deleteCmdOutput = popen(cpComand, "r");
|
||||
|
||||
while ((getline(&cLine, &len, deleteCmdOutput)) != -1)
|
||||
{
|
||||
//wipefs running
|
||||
}
|
||||
{
|
||||
// wipefs running
|
||||
}
|
||||
pclose(deleteCmdOutput);
|
||||
}
|
||||
|
Reference in New Issue
Block a user