From 9ce33c8c2621d2c0a8b30ba3a90cb9c857476a03 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 22 Feb 2026 13:34:32 +0100 Subject: m fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libgamma_LibgammaException.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'libgamma_LibgammaException.c') diff --git a/libgamma_LibgammaException.c b/libgamma_LibgammaException.c index 47c5fde..5b7bd11 100644 --- a/libgamma_LibgammaException.c +++ b/libgamma_LibgammaException.c @@ -17,10 +17,10 @@ jstring Java_libgamma_LibgammaException_name_1of_1error(JNIEnv *env, jclass class, jint value) { - /* It is really unlikely that `malloc` returns `NULL` here - * and error handing makes this unnecessarily comples, + /* It is really unlikely that `malloc` returns `NULL` here, + * and error handling makes this unnecessarily complex; * therefore we will simply skip it */ - + const char *do_not_free_this = libgamma_name_of_error(value); char *this_will_be_freed; size_t n; @@ -37,7 +37,7 @@ Java_libgamma_LibgammaException_name_1of_1error(JNIEnv *env, jclass class, jint /** * Return the value of a libgamma error definition - * refered to by name + * referred to by name * * @param name The name of the definition associated with the error code * @return The error code, zero if the name is {@code null} @@ -78,8 +78,8 @@ Java_libgamma_LibgammaException_libgamma_1group_1gid(JNIEnv *env, jclass class) jstring Java_libgamma_LibgammaException_libgamma_1group_1name(JNIEnv *env, jclass class) { - /* It is really unlikely that `malloc` returns `NULL` here - * and error handing makes this unnecessarily comples, + /* It is really unlikely that `malloc` returns `NULL` here, + * and error handling makes this unnecessarily complex; * therefore we will simply skip it */ const char *do_not_free_this = libgamma_group_name_get(); @@ -105,9 +105,9 @@ Java_libgamma_LibgammaException_libgamma_1group_1name(JNIEnv *env, jclass class) jstring Java_libgamma_LibgammaException_strerror(JNIEnv *env, jclass class, jint error_code) { - /* It is really unlikely that `malloc` returns `NULL` here - * and error handing makes this unnecessarily comples, - * therefore we will simply skip it */ + /* It is really unlikely that `malloc` returns `NULL` here, + * and error handling makes this unnecessarily complex; + * therefore we will simply skip it. */ const char *do_not_free_this = strerror(error_code); char *this_will_be_freed; -- cgit v1.2.3-70-g09d2