From daec7915216f13898d2a34c044f22792c2ccd464 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Thu, 20 Nov 2008 17:04:34 +0000 Subject: [PATCH] function should return void --- tools/cooja/config/contiki_template.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/tools/cooja/config/contiki_template.c b/tools/cooja/config/contiki_template.c index d7f75041c..1fc1b2e1b 100644 --- a/tools/cooja/config/contiki_template.c +++ b/tools/cooja/config/contiki_template.c @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: contiki_template.c,v 1.8 2008/11/20 16:36:27 fros4943 Exp $ + * $Id: contiki_template.c,v 1.9 2008/11/20 17:04:34 fros4943 Exp $ */ /** @@ -267,18 +267,13 @@ Java_se_sics_cooja_corecomm_[CLASS_NAME]_tick(JNIEnv *env, jobject obj) } /*---------------------------------------------------------------------------*/ /** - * \brief Get the absolute memory address of a special variable. - * \return Absolute memory address. - * - * Returns the absolute memory address of a special variable - * "referenceVar". By comparing this address with the relative - * address (from the map file) for referenceVar, an runtime offset - * can be calculated. + * \brief Set the relative memory address of the reference variable. + * \return Relative memory address. * * This is a JNI function and should only be called via the * responsible Java part (MoteType.java). */ -JNIEXPORT jint JNICALL +JNIEXPORT void JNICALL Java_se_sics_cooja_corecomm_[CLASS_NAME]_setReferenceAddress(JNIEnv *env, jobject obj, jint addr) { referenceVar = (((long)&referenceVar) - ((long)addr));