8302838: jabswitch main() should avoid calling exit explicitly

Reviewed-by: serb
This commit is contained in:
Julian Waters 2023-02-22 06:27:52 +00:00
parent 2c52cf0746
commit cba817ae59

View File

@ -440,7 +440,7 @@ int regDisable()
return err;
}
void main(int argc, char* argv[]) {
int main(int argc, char* argv[]) {
bool enableWasRequested = false;
bool disableWasRequested = false;
bool badParams = true;
@ -488,9 +488,6 @@ void main(int argc, char* argv[]) {
} else {
printf("disabled.\n");
}
// Use exit so test case can sense for error.
if (error != 0) {
exit(error);
}
}
return error;
}