[Forensics-changes] [yara] 06/15: Minor code re-styling

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:33:22 UTC 2017


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

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

commit 27d03e8235f51977f0b159e1bba990dd3ab5dfb8
Author: Victor Manuel Alvarez <vmalvarez at vmalvarez-macbookpro.roam.corp.google.com>
Date:   Mon Jun 19 10:17:51 2017 +0200

    Minor code re-styling
---
 libyara/re.c | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/libyara/re.c b/libyara/re.c
index 2a7b104..2320e8d 100644
--- a/libyara/re.c
+++ b/libyara/re.c
@@ -1421,7 +1421,6 @@ int _yr_re_fiber_exists(
   int equal_stacks;
   int i;
 
-
   if (last_fiber == NULL)
     return FALSE;
 
@@ -1627,11 +1626,11 @@ int _yr_re_fiber_sync(
   prev = fiber_to_sync->prev;
   last = fiber_to_sync->next;
 
-  while(fiber != last)
+  while (fiber != last)
   {
     uint8_t opcode = *fiber->ip;
 
-    switch(opcode)
+    switch (opcode)
     {
       case RE_OPCODE_SPLIT_A:
       case RE_OPCODE_SPLIT_B:
@@ -2028,7 +2027,7 @@ int yr_re_exec(
 
           prolog;
 
-          switch(*input)
+          switch (*input)
           {
             case ' ':
             case '\t':
@@ -2153,7 +2152,7 @@ int yr_re_exec(
           assert(FALSE);
       }
 
-      switch(action)
+      switch (action)
       {
         case ACTION_KILL:
           fiber = _yr_re_fiber_kill(&fibers, &storage->fiber_pool, fiber);
@@ -2253,7 +2252,7 @@ int yr_re_fast_exec(
     bytes_matched = matches_stack[sp];
     stop = FALSE;
 
-    while(!stop)
+    while (!stop)
     {
       if (*ip == RE_OPCODE_MATCH)
       {
@@ -2279,7 +2278,7 @@ int yr_re_fast_exec(
       if (bytes_matched >= max_bytes_matched)
         break;
 
-      switch(*ip)
+      switch (*ip)
       {
         case RE_OPCODE_LITERAL:
 
@@ -2376,7 +2375,7 @@ void _yr_re_print_node(
   if (re_node == NULL)
     return;
 
-  switch(re_node->type)
+  switch (re_node->type)
   {
   case RE_NODE_ALT:
     printf("Alt(");

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