RFR: 8283287: ClassLoader.c cleanups
Tyler Steele
duke at openjdk.java.net
Thu Mar 17 15:59:32 UTC 2022
On Thu, 17 Mar 2022 10:46:35 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
>> As mentioned in the issue, I'd like to perform the following tidying on ClassLoader.c
>>
>> - Alphabetize includes.
>> - Replace 'if (ptr == 0)' with 'if (ptr == NULL)'.
>> - Replace 'return 0' with 'return NULL'.
>
> src/java.base/share/native/libjava/ClassLoader.c line 27:
>
>> 25:
>> 26: #include <assert.h>
>> 27: #include <errno.h>
>
> Whats errno.h for?
Thanks for catching that. It was for [the other PR](https://github.com/openjdk/jdk/pull/7829).
-------------
PR: https://git.openjdk.java.net/jdk/pull/7846
More information about the core-libs-dev
mailing list