mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8339475: Clean up return code handling for pthread calls in library coding
Reviewed-by: clanger, jwaters
This commit is contained in:
parent
85dba47925
commit
2a2ecc994e
4 changed files with 16 additions and 14 deletions
|
@ -243,13 +243,7 @@ JLI_ReportErrorMessage(const char* fmt, ...) {
|
|||
JNIEXPORT void JNICALL
|
||||
JLI_ReportErrorMessageSys(const char* fmt, ...) {
|
||||
va_list vl;
|
||||
char *emsg;
|
||||
|
||||
/*
|
||||
* TODO: its safer to use strerror_r but is not available on
|
||||
* Solaris 8. Until then....
|
||||
*/
|
||||
emsg = strerror(errno);
|
||||
char *emsg = strerror(errno);
|
||||
if (emsg != NULL) {
|
||||
fprintf(stderr, "%s\n", emsg);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue