X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a96adb51dabc0c759af11e60c770355f22a54ef3..59649246c9a98ceda4bffa85ed4bd01a3c48adab:/src/bindings/java/jmsg_file.cpp diff --git a/src/bindings/java/jmsg_file.cpp b/src/bindings/java/jmsg_file.cpp index ff8dcba252..8ff7288c6b 100644 --- a/src/bindings/java/jmsg_file.cpp +++ b/src/bindings/java/jmsg_file.cpp @@ -1,6 +1,6 @@ /* Java bindings of the file API. */ -/* Copyright (c) 2012-2017. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2012-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -8,8 +8,6 @@ #include "jmsg_file.h" #include "jxbt_utilities.hpp" -extern "C" { - void jfile_bind(JNIEnv *env, jobject jfile, msg_file_t fd) { env->SetLongField(jfile, jfile_field_bind, reinterpret_cast(fd)); } @@ -48,9 +46,8 @@ JNIEXPORT void JNICALL Java_org_simgrid_msg_File_seek(JNIEnv *env, jobject jfile } JNIEXPORT void JNICALL Java_org_simgrid_msg_File_close(JNIEnv *env, jobject jfile) { - msg_file_t file = jfile_get_native(env, jfile); + const_sg_file_t file = jfile_get_native(env, jfile); MSG_file_close(file); jfile_bind(env, jfile, nullptr); } -}