function should return void
This commit is contained in:
parent
42c3b0fc19
commit
daec791521
|
@ -26,7 +26,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* 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.
|
* \brief Set the relative memory address of the reference variable.
|
||||||
* \return Absolute memory address.
|
* \return Relative 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.
|
|
||||||
*
|
*
|
||||||
* This is a JNI function and should only be called via the
|
* This is a JNI function and should only be called via the
|
||||||
* responsible Java part (MoteType.java).
|
* 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)
|
Java_se_sics_cooja_corecomm_[CLASS_NAME]_setReferenceAddress(JNIEnv *env, jobject obj, jint addr)
|
||||||
{
|
{
|
||||||
referenceVar = (((long)&referenceVar) - ((long)addr));
|
referenceVar = (((long)&referenceVar) - ((long)addr));
|
||||||
|
|
Loading…
Reference in a new issue