From: compudj Date: Tue, 3 Feb 2009 05:16:58 +0000 (+0000) Subject: cleanup old code X-Git-Tag: v0.12.20~177 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=335a7161f4ee116796ff5e7845480a577da730b4;p=lttv.git cleanup old code git-svn-id: http://ltt.polymtl.ca/svn@3312 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/trunk/obsolete/ltt-usertrace/java/ltt-java-string.c b/trunk/obsolete/ltt-usertrace/java/ltt-java-string.c index be011fb5..9ad87f6c 100644 --- a/trunk/obsolete/ltt-usertrace/java/ltt-java-string.c +++ b/trunk/obsolete/ltt-usertrace/java/ltt-java-string.c @@ -1,4 +1,3 @@ - #include #include "Sample.h" #include @@ -13,8 +12,8 @@ JNIEXPORT void JNICALL Java_Sample_trace_1java_1generic_1string { const char *str; str = (*env)->GetStringUTFChars(env, jstr, NULL); - if (str == NULL) return; // out of memory error thrown - trace_user_generic_string(str); + if (str == NULL) + return; /* out of memory error thrown */ + trace_user_generic_string(str); (*env)->ReleaseStringUTFChars(env, jstr, str); } - diff --git a/trunk/obsolete/ltt-usertrace/java/ltt-java-thread_brand.c b/trunk/obsolete/ltt-usertrace/java/ltt-java-thread_brand.c index 87041cc1..11303015 100644 --- a/trunk/obsolete/ltt-usertrace/java/ltt-java-thread_brand.c +++ b/trunk/obsolete/ltt-usertrace/java/ltt-java-thread_brand.c @@ -1,4 +1,3 @@ - #include #include "Sample.h" #include @@ -13,8 +12,8 @@ JNIEXPORT void JNICALL Java_ltt_ThreadBrand_trace_1java_1generic_1thread_1brand { const char *str; str = (*env)->GetStringUTFChars(env, jstr, NULL); - if (str == NULL) return; // out of memory error thrown - trace_user_generic_thread_brand(str); + if (str == NULL) + return; /* out of memory error thrown */ + trace_user_generic_thread_brand(str); (*env)->ReleaseStringUTFChars(env, jstr, str); } -