X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust-java%2FLTTngUst.c;h=f5e0c96b9c1e59e74e29a51b47577c49d0d15ed6;hb=6ba6fd60507f8e045bdc4f1be14e9d99c6a15f7f;hp=4549fdea8789f1ab73efdc720c8217aa150b6c38;hpb=ca7bd68c5510cffbbb282d53eff2332d31429795;p=lttng-ust.git diff --git a/liblttng-ust-java/LTTngUst.c b/liblttng-ust-java/LTTngUst.c index 4549fdea..f5e0c96b 100644 --- a/liblttng-ust-java/LTTngUst.c +++ b/liblttng-ust-java/LTTngUst.c @@ -1,21 +1,10 @@ /* - * Copyright (C) 2011-2012 Mathieu Desnoyers - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; only - * version 2.1 of the License. + * SPDX-License-Identifier: LGPL-2.1-only * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * Copyright (C) 2011-2012 Mathieu Desnoyers */ +#define _LGPL_SOURCE #include "org_lttng_ust_LTTngUst.h" #define TRACEPOINT_DEFINE @@ -23,7 +12,7 @@ #include "lttng_ust_java.h" JNIEXPORT void JNICALL Java_org_lttng_ust_LTTngUst_tracepointInt(JNIEnv *env, - jobject jobj, + jobject jobj __attribute__((unused)), jstring ev_name, jint payload) { @@ -36,7 +25,7 @@ JNIEXPORT void JNICALL Java_org_lttng_ust_LTTngUst_tracepointInt(JNIEnv *env, } JNIEXPORT void JNICALL Java_org_lttng_ust_LTTngUst_tracepointIntInt(JNIEnv *env, - jobject jobj, + jobject jobj __attribute__((unused)), jstring ev_name, jint payload1, jint payload2) @@ -50,7 +39,7 @@ JNIEXPORT void JNICALL Java_org_lttng_ust_LTTngUst_tracepointIntInt(JNIEnv *env, } JNIEXPORT void JNICALL Java_org_lttng_ust_LTTngUst_tracepointLong(JNIEnv *env, - jobject jobj, + jobject jobj __attribute__((unused)), jstring ev_name, jlong payload) { @@ -63,7 +52,7 @@ JNIEXPORT void JNICALL Java_org_lttng_ust_LTTngUst_tracepointLong(JNIEnv *env, } JNIEXPORT void JNICALL Java_org_lttng_ust_LTTngUst_tracepointLongLong(JNIEnv *env, - jobject jobj, + jobject jobj __attribute__((unused)), jstring ev_name, jlong payload1, jlong payload2) @@ -77,7 +66,7 @@ JNIEXPORT void JNICALL Java_org_lttng_ust_LTTngUst_tracepointLongLong(JNIEnv *en } JNIEXPORT void JNICALL Java_org_lttng_ust_LTTngUst_tracepointString(JNIEnv *env, - jobject jobj, + jobject jobj __attribute__((unused)), jstring ev_name, jstring payload) {