Skip to content

Commit

Permalink
8302838: jabswitch main() should avoid calling exit explicitly
Browse files Browse the repository at this point in the history
Reviewed-by: serb
  • Loading branch information
TheShermanTanker committed Feb 22, 2023
1 parent 2c52cf0 commit cba817a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/jdk.accessibility/windows/native/jabswitch/jabswitch.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

1 comment on commit cba817a

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.