[Forensics-changes] [yara] 02/17: Make loop variable declaration C89-compliant
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:32:43 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.6.1
in repository yara.
commit 454450fc1fe7d60f59c42fb94cbf6347bf737472
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Mon May 22 19:21:26 2017 +0200
Make loop variable declaration C89-compliant
---
libyara/modules/magic.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/libyara/modules/magic.c b/libyara/modules/magic.c
index d0a14fa..cf5a2df 100644
--- a/libyara/modules/magic.c
+++ b/libyara/modules/magic.c
@@ -120,7 +120,9 @@ end_declarations;
int module_initialize(
YR_MODULE* module)
{
- for (int i = 0; i < MAX_THREADS; i++)
+ int i;
+
+ for (i = 0; i < MAX_THREADS; i++)
magic_cookie[i] = NULL;
return ERROR_SUCCESS;
@@ -130,7 +132,9 @@ int module_initialize(
int module_finalize(
YR_MODULE* module)
{
- for (int i = 0; i < MAX_THREADS; i++)
+ int i;
+
+ for (i = 0; i < MAX_THREADS; i++)
if (magic_cookie[i] != NULL)
magic_close(magic_cookie[i]);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git
More information about the forensics-changes
mailing list