summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Szumski <will@cowboycoders.org>2016-11-22 23:53:46 +0000
committeryvesf <yvesf-git@xapek.org>2016-11-28 19:08:12 +0100
commitcf97b16267193db29aeef547029f9e0299f33f02 (patch)
tree0370629085882928f21032c7813bb26872e3ac24
parentb63fae572b5acb0c77feed85bacc24be03cb040c (diff)
downloadandiodine-cf97b16267193db29aeef547029f9e0299f33f02.tar.gz
andiodine-cf97b16267193db29aeef547029f9e0299f33f02.zip
restore c89 compatability
-rw-r--r--jni/iodine-client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/jni/iodine-client.c b/jni/iodine-client.c
index 32351e7..0a0c8ce 100644
--- a/jni/iodine-client.c
+++ b/jni/iodine-client.c
@@ -211,7 +211,8 @@ JNIEXPORT jint JNICALL Java_org_xapek_andiodine_IodineClient_getMtu(JNIEnv *env,
JNIEXPORT jstring JNICALL Java_org_xapek_andiodine_IodineClient_getPropertyNetDns1(
JNIEnv *env, jclass klass) {
struct sockaddr_in sa;
- for (int i = 1; i <= MAX_DNS_PROPERTIES; i++) {
+ int i;
+ for (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);