refactor: remove positive error codes
This commit is contained in:
1 parent
28076af96d
commit
970c2d0999
3 files changed
+2
-11
No files matched your search
@@ -283,7 +283,7 @@ static int CmdQuit(const char *Cmd) {
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||
CLIParserFree(ctx);
|
||||
return PM3_SQUIT;
|
||||
return PM3_EFATAL;
|
||||
}
|
||||
|
||||
static int CmdRev(const char *Cmd) {
|
||||
|
||||
@@ -574,11 +574,6 @@ check_script:
|
||||
// exit or quit
|
||||
if (mainret == PM3_EFATAL)
|
||||
break;
|
||||
if (mainret == PM3_SQUIT) {
|
||||
// Normal quit, map to 0
|
||||
mainret = PM3_SUCCESS;
|
||||
break;
|
||||
}
|
||||
}
|
||||
free(cmd);
|
||||
cmd = NULL;
|
||||
|
||||
Reference in new issue
Block a user