[Forensics-changes] [yara] 156/368: Fix spacing
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:30:22 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.5.0
in repository yara.
commit 0ed6087b104f1b55d7f8a267e3bff4d7c4482ca3
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Fri Jan 22 18:05:41 2016 +0100
Fix spacing
---
libyara/ahocorasick.c | 3 ---
libyara/arena.c | 1 -
libyara/rules.c | 8 ++++----
libyara/scan.c | 4 ++--
libyara/stream.c | 6 +++---
libyara/strutils.c | 2 +-
6 files changed, 10 insertions(+), 14 deletions(-)
diff --git a/libyara/ahocorasick.c b/libyara/ahocorasick.c
index 10e1451..29000bd 100644
--- a/libyara/ahocorasick.c
+++ b/libyara/ahocorasick.c
@@ -683,6 +683,3 @@ void yr_ac_print_automaton(YR_AC_AUTOMATON* automaton)
_yr_ac_print_automaton_state(automaton->root);
printf("-------------------------------------------------------\n");
}
-
-
-
diff --git a/libyara/arena.c b/libyara/arena.c
index 074e19d..b987993 100644
--- a/libyara/arena.c
+++ b/libyara/arena.c
@@ -1061,4 +1061,3 @@ int yr_arena_save_stream(
return ERROR_SUCCESS;
}
-
diff --git a/libyara/rules.c b/libyara/rules.c
index 7961cd2..d6f0efc 100644
--- a/libyara/rules.c
+++ b/libyara/rules.c
@@ -320,7 +320,7 @@ YR_API int yr_rules_scan_mem_blocks(
YR_EXTERNAL_VARIABLE* external;
YR_RULE* rule;
YR_SCAN_CONTEXT context;
-
+
time_t start_time;
tidx_mask_t bit = 1;
@@ -578,7 +578,7 @@ YR_API int yr_rules_scan_fd(
int timeout)
{
YR_MAPPED_FILE mfile;
-
+
int result = yr_filemap_map_fd(fd, 0, 0, &mfile);
if (result == ERROR_SUCCESS)
@@ -692,7 +692,7 @@ YR_API int yr_rules_load(
YR_STREAM stream;
FILE* fh = fopen(filename, "rb");
-
+
if (fh == NULL)
return ERROR_COULD_NOT_OPEN_FILE;
@@ -720,7 +720,7 @@ YR_API int yr_rules_save(
const char* filename)
{
int result;
-
+
YR_STREAM stream;
FILE* fh = fopen(filename, "wb");
diff --git a/libyara/scan.c b/libyara/scan.c
index a6a684e..3fb3f8c 100644
--- a/libyara/scan.c
+++ b/libyara/scan.c
@@ -301,12 +301,12 @@ int _yr_scan_fast_hex_re_exec(
matches_stack[sp] = matches;
sp++;
ip += 3;
-
+
break;
case RE_OPCODE_PUSH:
- // A PUSH operation indicates the begining of a code sequence
+ // A PUSH operation indicates the begining of a code sequence
// generated for a jump. (example: { 01 02 [n-m] 03 04 }) The
// code sequence looks like this:
//
diff --git a/libyara/stream.c b/libyara/stream.c
index a39e385..69e0700 100644
--- a/libyara/stream.c
+++ b/libyara/stream.c
@@ -25,7 +25,7 @@ size_t yr_stream_read(
YR_STREAM* stream)
{
if (stream->read == NULL)
- return 0;
+ return 0;
return stream->read(ptr, size, count, stream->user_data);
}
@@ -38,7 +38,7 @@ size_t yr_stream_write(
YR_STREAM* stream)
{
if (stream->write == NULL)
- return 0;
+ return 0;
return stream->write(ptr, size, count, stream->user_data);
-}
\ No newline at end of file
+}
diff --git a/libyara/strutils.c b/libyara/strutils.c
index 18141ff..2964c20 100644
--- a/libyara/strutils.c
+++ b/libyara/strutils.c
@@ -23,7 +23,7 @@ limitations under the License.
uint64_t xtoi(
const char* hexstr)
-{
+{
size_t i;
size_t l = strlen(hexstr);
--
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