A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Temporary patch to handle host failure exception during live migration of VM (a clean...
[simgrid.git]
/
src
/
bindings
/
java
/
jmsg_file.c
diff --git
a/src/bindings/java/jmsg_file.c
b/src/bindings/java/jmsg_file.c
index
f8adbda
..
1210a74
100644
(file)
--- a/
src/bindings/java/jmsg_file.c
+++ b/
src/bindings/java/jmsg_file.c
@@
-26,15
+26,13
@@
Java_org_simgrid_msg_File_nativeInit(JNIEnv *env, jclass cls) {
xbt_assert((jfile_field_bind != NULL), "Can't find \"bind\" field in File class.");
}
JNIEXPORT void JNICALL
xbt_assert((jfile_field_bind != NULL), "Can't find \"bind\" field in File class.");
}
JNIEXPORT void JNICALL
-Java_org_simgrid_msg_File_open(JNIEnv *env, jobject jfile, jobject jstorage, jobject jpath) {
- const char *storage = (*env)->GetStringUTFChars(env, jstorage, 0);
+Java_org_simgrid_msg_File_open(JNIEnv *env, jobject jfile, jobject jpath) {
const char *path = (*env)->GetStringUTFChars(env, jpath, 0);
msg_file_t file;
const char *path = (*env)->GetStringUTFChars(env, jpath, 0);
msg_file_t file;
- file = MSG_file_open(
storage,
path, NULL);
+ file = MSG_file_open(path, NULL);
jfile_bind(env, jfile, file);
jfile_bind(env, jfile, file);
- (*env)->ReleaseStringUTFChars(env, jstorage, storage);
(*env)->ReleaseStringUTFChars(env, jpath, path);
}
JNIEXPORT jlong JNICALL
(*env)->ReleaseStringUTFChars(env, jpath, path);
}
JNIEXPORT jlong JNICALL