[Forensics-changes] [yara] 66/192: Fix warning

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:31:47 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 e37e2d8289cc4930fce72200c8973f9571c30671
Author: plusvic <plusvic at gmail.com>
Date:   Mon Nov 14 18:43:15 2016 +0100

    Fix warning
---
 libyara/lexer.c | 2 +-
 libyara/lexer.l | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libyara/lexer.c b/libyara/lexer.c
index 7312881..80ed7ac 100644
--- a/libyara/lexer.c
+++ b/libyara/lexer.c
@@ -3252,7 +3252,7 @@ int yr_lex_parse_rules_fd(
     if (!ReadFile(rules_fd, buf, sizeof(buf), &len, NULL))
       break;
 #else
-    int len = read(rules_fd, buf, sizeof(buf));
+    ssize_t len = read(rules_fd, buf, sizeof(buf));
     if (len < 0)
     {
       if (errno == EINTR)
diff --git a/libyara/lexer.l b/libyara/lexer.l
index 402d802..eee3e51 100644
--- a/libyara/lexer.l
+++ b/libyara/lexer.l
@@ -845,7 +845,7 @@ int yr_lex_parse_rules_fd(
     if (!ReadFile(rules_fd, buf, sizeof(buf), &len, NULL))
       break;
 #else
-    int len = read(rules_fd, buf, sizeof(buf));
+    ssize_t len = read(rules_fd, buf, sizeof(buf));
     if (len < 0)
     {
       if (errno == EINTR)

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