[Forensics-changes] [yara] 21/135: Minor style fixes
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:27:28 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.1.0
in repository yara.
commit 3216460c21d1b3ba6c31bdefcef29b558ebbd944
Author: Victor Manuel Alvarez <vmalvarez at virustotal.com>
Date: Wed May 14 12:00:41 2014 +0200
Minor style fixes
---
libyara/arena.c | 45 +++++++++++++++++++++++----------------------
1 file changed, 23 insertions(+), 22 deletions(-)
diff --git a/libyara/arena.c b/libyara/arena.c
index a55004f..e9705e2 100644
--- a/libyara/arena.c
+++ b/libyara/arena.c
@@ -151,8 +151,8 @@ YR_ARENA_PAGE* _yr_arena_page_for_address(
//
// Args:
// YR_ARENA* arena - Pointer the arena
-// void* address - Base address
-// va_list offsets - List of offsets relative to base address
+// void* address - Base address
+// va_list offsets - List of offsets relative to base address
//
// Returns:
// ERROR_SUCCESS if succeed or the corresponding error code otherwise.
@@ -211,9 +211,9 @@ int _yr_arena_make_relocatable(
//
// Args:
// size_t initial_size - Initial size
-// int flags - Flags
+// int flags - Flags
// YR_ARENA** arena - Address where a pointer to the new arena will be
-// written to.
+// written to.
//
// Returns:
// ERROR_SUCCESS if succeed or the corresponding error code otherwise.
@@ -325,8 +325,8 @@ void* yr_arena_base_address(
//
// Args:
// YR_ARENA* arena - Pointer to the arena.
-// void* address - Base address.
-// int offset - Offset.
+// void* address - Base address.
+// int offset - Offset.
//
// Returns:
// A pointer
@@ -607,12 +607,13 @@ int yr_arena_allocate_memory(
// EOL);
//
// Args:
-// YR_ARENA* arena - Pointer to the arena.
-// size_t size - Size of the region to be allocated.
+// YR_ARENA* arena - Pointer to the arena.
+// size_t size - Size of the region to be allocated.
// void** allocated_memory - Address of a pointer to newly allocated
// region.
-// ... - Variable number of offsets relative to beginning of
-// the struct. Offsets are if type size_t.
+// ... - Variable number of offsets relative to the
+// beginning of the struct. Offsets are of type
+// size_t.
//
// Returns:
// ERROR_SUCCESS if succeed or the corresponding error code otherwise.
@@ -649,9 +650,9 @@ int yr_arena_allocate_struct(
//
// Args:
// YR_ARENA* arena - Pointer to the arena.
-// void* base - Address within the arena.
-// ... - Variable number of size_t arguments with offsets
-// relative to base.
+// void* base - Address within the arena.
+// ... - Variable number of size_t arguments with offsets
+// relative to base.
//
// Returns:
// ERROR_SUCCESS if succeed or the corresponding error code otherwise.
@@ -682,10 +683,10 @@ int yr_arena_make_relocatable(
//
// Args:
// YR_ARENA* arena - Pointer to the arena.
-// void* data - Pointer to data to be written.
-// size_t size - Size of data.
-// void** written_data - Address where a pointer to the written data will
-// be returned.
+// void* data - Pointer to data to be written.
+// size_t size - Size of data.
+// void** written_data - Address where a pointer to the written data will
+// be returned.
//
// Returns:
// ERROR_SUCCESS if succeed or the corresponding error code otherwise.
@@ -728,7 +729,7 @@ int yr_arena_write_data(
// Writes string to the arena.
//
// Args:
-// YR_ARENA* arena - Pointer to the arena.
+// YR_ARENA* arena - Pointer to the arena.
// const char* string - Pointer to string to be written.
// void** written_string - Address where a pointer to the written data will
// be returned.
@@ -786,8 +787,8 @@ int yr_arena_append(
//
// Args:
// YR_ARENA* arena - Pointer to the arena.
-// YR_ARENA** duplicated - Address where a pointer to the new arena arena will
-// be returned.
+// YR_ARENA** duplicated - Address where a pointer to the new arena arena
+// will be returned.
//
// Returns:
// ERROR_SUCCESS if succeed or the corresponding error code otherwise.
@@ -880,7 +881,7 @@ int yr_arena_duplicate(
//
// Args:
// YR_ARENA* arena - Pointer to the arena.
-// const char* filename - File path.
+// const char* filename - File path.
//
// Returns:
// ERROR_SUCCESS if succeed or the corresponding error code otherwise.
@@ -972,7 +973,7 @@ int yr_arena_save(
//
// Args:
// const char* filename - File path.
-// YR_ARENA** - Address where a pointer to the loaded arena
+// YR_ARENA** - Address where a pointer to the loaded arena
// will be returned.
//
// Returns:
--
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