diff --git a/bindings/java/src/jni/javasigar.c b/bindings/java/src/jni/javasigar.c index c2b8bf82..a9684832 100644 --- a/bindings/java/src/jni/javasigar.c +++ b/bindings/java/src/jni/javasigar.c @@ -218,7 +218,7 @@ static void sigar_set_pointer(JNIEnv *env, jobject obj, const void *ptr) { #endif } -int jsigar_init_list(JNIEnv *env, jsigar_list_t *obj) +int jsigar_list_init(JNIEnv *env, jsigar_list_t *obj) { jclass listclass = JENV->FindClass(env, "java/util/ArrayList"); diff --git a/bindings/java/src/jni/javasigar.h b/bindings/java/src/jni/javasigar.h index 021cc9f3..43093b9d 100644 --- a/bindings/java/src/jni/javasigar.h +++ b/bindings/java/src/jni/javasigar.h @@ -42,7 +42,7 @@ typedef struct { extern "C" { #endif -int jsigar_init_list(JNIEnv *env, jsigar_list_t *obj); +int jsigar_list_init(JNIEnv *env, jsigar_list_t *obj); int jsigar_list_add(void *data, char *value, int len);