autoformat all sources

This commit is contained in:
2024-04-24 22:31:09 +02:00
parent e4a73556d6
commit 70dda97ae2
16 changed files with 746 additions and 752 deletions

View File

@ -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);
}