summaryrefslogtreecommitdiff
path: root/jni
diff options
context:
space:
mode:
authorWill Szumski <will@cowboycoders.org>2016-11-22 22:14:02 +0000
committeryvesf <yvesf-git@xapek.org>2016-11-22 23:24:15 +0100
commit8f68d963f923650725028cb50bec23c796f05e47 (patch)
tree6ab02f1420703a446b41a59cc9335b8356e3812f /jni
parentac2c930b678830b4666a82c61075eba11d37b7f9 (diff)
downloadandiodine-8f68d963f923650725028cb50bec23c796f05e47.tar.gz
andiodine-8f68d963f923650725028cb50bec23c796f05e47.zip
fix indentation
Diffstat (limited to 'jni')
-rw-r--r--jni/iodine-client.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/jni/iodine-client.c b/jni/iodine-client.c
index 0af59a7..32351e7 100644
--- a/jni/iodine-client.c
+++ b/jni/iodine-client.c
@@ -210,15 +210,15 @@ JNIEXPORT jint JNICALL Java_org_xapek_andiodine_IodineClient_getMtu(JNIEnv *env,
// String IodineClient.getPropertyNetDns1
JNIEXPORT jstring JNICALL Java_org_xapek_andiodine_IodineClient_getPropertyNetDns1(
JNIEnv *env, jclass klass) {
- struct sockaddr_in sa;
+ struct sockaddr_in sa;
for (int i = 1; i <= MAX_DNS_PROPERTIES; i++) {
- char prop_name[PROP_NAME_MAX];
- char dns[PROP_VALUE_MAX];
- snprintf(prop_name, sizeof(prop_name), "net.dns%d", i);
- __system_property_get(prop_name, dns);
- if (inet_pton(AF_INET, dns, &(sa.sin_addr)) == 1) {
- return (*env)->NewStringUTF(env, dns);
- }
- }
+ char prop_name[PROP_NAME_MAX];
+ char dns[PROP_VALUE_MAX];
+ snprintf(prop_name, sizeof(prop_name), "net.dns%d", i);
+ __system_property_get(prop_name, dns);
+ if (inet_pton(AF_INET, dns, &(sa.sin_addr)) == 1) {
+ return (*env)->NewStringUTF(env, dns);
+ }
+ }
return (*env)->NewStringUTF(env, "");
}