[Forensics-changes] [yara] 79/192: Remove C99-only structure initialization
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:31:49 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.6.0
in repository yara.
commit 10a64a197a78641fd7f55d1d03fc71ff3db45ed9
Author: plusvic <plusvic at gmail.com>
Date: Tue Nov 22 19:47:37 2016 +0100
Remove C99-only structure initialization
---
yara.c | 8 ++++----
yarac.c | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/yara.c b/yara.c
index 3a3d8e3..8d99360 100644
--- a/yara.c
+++ b/yara.c
@@ -999,6 +999,8 @@ int main(
int argc,
const char** argv)
{
+ COMPILER_RESULTS cr;
+
YR_COMPILER* compiler = NULL;
YR_RULES* rules = NULL;
@@ -1106,10 +1108,8 @@ int main(
exit_with_code(EXIT_FAILURE);
}
- COMPILER_RESULTS cr = {
- .errors = 0,
- .warnings = 0
- };
+ cr.errors = 0;
+ cr.warnings = 0;
yr_compiler_set_callback(compiler, print_compiler_error, &cr);
diff --git a/yarac.c b/yarac.c
index 6149935..4a05dc0 100644
--- a/yarac.c
+++ b/yarac.c
@@ -186,6 +186,8 @@ int main(
int argc,
const char** argv)
{
+ COMPILER_RESULTS cr;
+
YR_COMPILER* compiler = NULL;
YR_RULES* rules = NULL;
@@ -229,10 +231,8 @@ int main(
if (!define_external_variables(compiler))
exit_with_code(EXIT_FAILURE);
- COMPILER_RESULTS cr = {
- .errors = 0,
- .warnings = 0
- };
+ cr.errors = 0;
+ cr.warnings = 0;
yr_compiler_set_callback(compiler, report_error, &cr);
--
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