--- old/src/java.base/unix/native/libjava/jni_util_md.c 2018-03-23 14:24:20.513157999 +0100 +++ new/src/java.base/unix/native/libjava/jni_util_md.c 2018-03-23 14:24:20.309158000 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -59,7 +59,7 @@ } } -size_t +JNIEXPORT size_t JNICALL getLastErrorString(char *buf, size_t len) { if (errno == 0 || len < 1) return 0; @@ -67,7 +67,7 @@ return strlen(buf); } -int +JNIEXPORT int JNICALL getErrorString(int err, char *buf, size_t len) { if (err == 0 || len < 1) return 0;