Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
restore c89 compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Szumski authored and yvesf committed Nov 28, 2016
1 parent b63fae5 commit cf97b16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jni/iodine-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cf97b16

Please sign in to comment.