[Forensics-changes] [yara] 88/407: Fix warnings in while compiling in C++

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:28:13 UTC 2017


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag v3.3.0
in repository yara.

commit d4e5eb877300d52a797a4b0bc8077118c6374396
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Thu Oct 9 12:20:05 2014 +0200

    Fix warnings in while compiling in C++
---
 yara.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/yara.c b/yara.c
index 546bdc0..51f04f6 100644
--- a/yara.c
+++ b/yara.c
@@ -765,7 +765,7 @@ int process_cmd_line(
 
       case 't':
         show_specified_tags = TRUE;
-        tag = malloc(sizeof(TAG));
+        tag = (TAG*) malloc(sizeof(TAG));
 
         if (tag != NULL)
         {
@@ -782,7 +782,7 @@ int process_cmd_line(
 
       case 'i':
         show_specified_rules = TRUE;
-        identifier = malloc(sizeof(IDENTIFIER));
+        identifier = (IDENTIFIER*) malloc(sizeof(IDENTIFIER));
 
         if (identifier != NULL)
         {
@@ -799,7 +799,7 @@ int process_cmd_line(
 
       case 'd':
         equal_sign = strchr(optarg, '=');
-        external = malloc(sizeof(EXTERNAL));
+        external = (EXTERNAL*) malloc(sizeof(EXTERNAL));
 
         if (external != NULL)
         {

-- 
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