X-Git-Url: https://git.toastfreeware.priv.at/debian/iodine.git/blobdiff_plain/94844c67c68347f4ae5f01bd954b6c4a5d104221..81f2f4b5b93cecc84dcf6f3c80723baefc0a07aa:/src/fw_query.c diff --git a/src/fw_query.c b/src/fw_query.c index 3727f08..4f7d8c4 100644 --- a/src/fw_query.c +++ b/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; }