summaryrefslogtreecommitdiff
path: root/jni/iodine/src/fw_query.c
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2014-08-11 23:26:36 +0200
committerYves Fischer <yvesf-git@xapek.org>2014-08-11 23:26:36 +0200
commit5d8801d4687035ae45143f0f3bc3eeaf75dc17ec (patch)
treebf4395fd5938eb1865ba90b6e52e169d727d9404 /jni/iodine/src/fw_query.c
parent1251ce0d7cf2619f9b41637dcb88bebb66e54fb3 (diff)
downloadandiodine-5d8801d4687035ae45143f0f3bc3eeaf75dc17ec.tar.gz
andiodine-5d8801d4687035ae45143f0f3bc3eeaf75dc17ec.zip
Upgrade code to iodine 0.7.0 and improve logging
Diffstat (limited to 'jni/iodine/src/fw_query.c')
-rw-r--r--jni/iodine/src/fw_query.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/jni/iodine/src/fw_query.c b/jni/iodine/src/fw_query.c
index 3727f08..4f7d8c4 100644
--- a/jni/iodine/src/fw_query.c
+++ b/jni/iodine/src/fw_query.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008 Erik Ekman <yarrick@kryo.se>
+ * Copyright (c) 2008-2014 Erik Ekman <yarrick@kryo.se>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -29,9 +29,9 @@ void fw_query_init()
void fw_query_put(struct fw_query *fw_query)
{
memcpy(&(fwq[fwq_ix]), fw_query, sizeof(struct fw_query));
-
+
++fwq_ix;
- if (fwq_ix >= FW_QUERY_CACHE_SIZE)
+ if (fwq_ix >= FW_QUERY_CACHE_SIZE)
fwq_ix = 0;
}