[Forensics-changes] [yara] 71/192: Minor re-styling
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:31:48 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 79316a3b911b4ccfda0b3961d26523f0fd8ccfd5
Author: plusvic <plusvic at gmail.com>
Date: Tue Nov 15 10:00:11 2016 +0100
Minor re-styling
---
libyara/modules/elf.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/libyara/modules/elf.c b/libyara/modules/elf.c
index 5e8c6d1..dff586e 100644
--- a/libyara/modules/elf.c
+++ b/libyara/modules/elf.c
@@ -165,8 +165,10 @@ void parse_elf_header_##bits##_##bo( \
((uint8_t*) elf + yr_##bo##bits##toh(elf->sh_offset)); \
\
if (section[yr_##bo##16toh(elf->sh_str_table_index)].offset < elf_size) \
- str_table = (char*) elf + \
- yr_##bo##bits##toh(section[yr_##bo##16toh(elf->sh_str_table_index)].offset); \
+ { \
+ str_table = (char*) elf + yr_##bo##bits##toh( \
+ section[yr_##bo##16toh(elf->sh_str_table_index)].offset); \
+ } \
\
for (i = 0; i < yr_##bo##16toh(elf->sh_entry_count); i++) \
{ \
@@ -422,7 +424,7 @@ int module_load(
switch(get_elf_class_data(block_data, block->size))
{
- case CLASS_DATA(ELF_CLASS_32,ELF_DATA_2LSB):
+ case CLASS_DATA(ELF_CLASS_32, ELF_DATA_2LSB):
if (block->size > sizeof(elf32_header_t))
{
@@ -442,7 +444,7 @@ int module_load(
break;
- case CLASS_DATA(ELF_CLASS_32,ELF_DATA_2MSB):
+ case CLASS_DATA(ELF_CLASS_32, ELF_DATA_2MSB):
if (block->size > sizeof(elf32_header_t))
{
--
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