Skip to content

Commit

Permalink
jni: Change setPFS() to use a boolean argument
Browse files Browse the repository at this point in the history
This makes it more consistent with setXMLPost().

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
  • Loading branch information
cernekee committed Jun 10, 2014
1 parent 7d87891 commit 64c20a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion java/src/org/infradead/libopenconnect/LibOpenConnect.java
Expand Up @@ -126,7 +126,7 @@ public synchronized native void setMobileInfo(String mobilePlatformVersion,
public synchronized native void setClientCert(String cert, String sslKey);
public synchronized native void setServerCertSHA1(String hash);
public synchronized native void setReqMTU(int mtu);
public synchronized native void setPFS(int isEnabled);
public synchronized native void setPFS(boolean isEnabled);

/* connection info */

Expand Down
2 changes: 1 addition & 1 deletion jni.c
Expand Up @@ -888,7 +888,7 @@ JNIEXPORT void JNICALL Java_org_infradead_libopenconnect_LibOpenConnect_setReqMT
}

JNIEXPORT void JNICALL Java_org_infradead_libopenconnect_LibOpenConnect_setPFS(
JNIEnv *jenv, jobject jobj, jint arg)
JNIEnv *jenv, jobject jobj, jboolean arg)
{
struct libctx *ctx = getctx(jenv, jobj);

Expand Down

0 comments on commit 64c20a5

Please sign in to comment.