From 5d8801d4687035ae45143f0f3bc3eeaf75dc17ec Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Mon, 11 Aug 2014 23:26:36 +0200 Subject: Upgrade code to iodine 0.7.0 and improve logging --- jni/iodine/src/fw_query.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'jni/iodine/src/fw_query.c') 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 + * Copyright (c) 2008-2014 Erik Ekman * * 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; } -- cgit v1.2.1