[Forensics-changes] [yara] 103/415: Avoid warning: no newline at end of file (issue 27)

Hilko Bengen bengen at moszumanska.debian.org
Thu Apr 3 05:42:50 UTC 2014


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

bengen pushed a commit to branch debian
in repository yara.

commit 4c4b827125d58637e8ea109f1209a0d78c1fe020
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Thu Jul 28 11:29:37 2011 +0000

    Avoid warning: no newline at end of file (issue 27)
---
 libyara/lex.h      |  3 ++-
 libyara/proc.c     | 15 ++++++++-------
 libyara/sizedstr.h |  5 +++--
 3 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/libyara/lex.h b/libyara/lex.h
index df7e5fa..9be52e8 100644
--- a/libyara/lex.h
+++ b/libyara/lex.h
@@ -29,4 +29,5 @@ void yyerror(yyscan_t yyscanner, const char *error_message);
 YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner);
 
 int parse_rules_string(const char* rules_string, YARA_CONTEXT* context);
-int parse_rules_file(FILE* rules_file, YARA_CONTEXT* context);
\ No newline at end of file
+int parse_rules_file(FILE* rules_file, YARA_CONTEXT* context);
+
diff --git a/libyara/proc.c b/libyara/proc.c
index cfb47c9..020a2f6 100644
--- a/libyara/proc.c
+++ b/libyara/proc.c
@@ -39,7 +39,7 @@ int get_process_memory(int pid, MEMORY_BLOCK** first_block)
     TOKEN_PRIVILEGES tokenPriv;
     LUID luidDebug; 
     HANDLE hProcess;
-	HANDLE hToken;
+    HANDLE hToken;
     
     if( OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES, &hToken) && 
         LookupPrivilegeValue(NULL, SE_DEBUG_NAME, &luidDebug)) 
@@ -48,7 +48,7 @@ int get_process_memory(int pid, MEMORY_BLOCK** first_block)
             tokenPriv.Privileges[0].Luid = luidDebug; 
             tokenPriv.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED; 
 
-    	    AdjustTokenPrivileges(hToken, FALSE, &tokenPriv, sizeof(tokenPriv), NULL, NULL); 
+            AdjustTokenPrivileges(hToken, FALSE, &tokenPriv, sizeof(tokenPriv), NULL, NULL); 
     }  
  
     hProcess = OpenProcess(PROCESS_VM_READ | PROCESS_QUERY_INFORMATION, FALSE, pid);
@@ -246,7 +246,7 @@ int get_process_memory(pid_t pid, MEMORY_BLOCK** first_block)
     {
         return ERROR_COULD_NOT_ATTACH_TO_PROCESS;
     }
-       
+    
     wait(NULL);
 
     while (fgets(buffer, sizeof(buffer), maps) != NULL)
@@ -269,15 +269,15 @@ int get_process_memory(pid_t pid, MEMORY_BLOCK** first_block)
                 yr_free(data);
                 return ERROR_INSUFICIENT_MEMORY;
             }
-
+            
             if (*first_block == NULL)
                 *first_block = new_block;
-        
+            
             new_block->base = begin;
             new_block->size = length;
             new_block->data = data;
             new_block->next = NULL;
-
+            
             if (current_block != NULL)
                 current_block->next = new_block;
             
@@ -294,4 +294,5 @@ int get_process_memory(pid_t pid, MEMORY_BLOCK** first_block)
 }
 
 #endif
-#endif
\ No newline at end of file
+#endif
+
diff --git a/libyara/sizedstr.h b/libyara/sizedstr.h
index 1e23a11..ae075ce 100644
--- a/libyara/sizedstr.h
+++ b/libyara/sizedstr.h
@@ -27,7 +27,8 @@ typedef struct _SIZED_STRING
 {
     int length;
     char c_string[1];  
-    
+
 } SIZED_STRING;
 
-#endif
\ No newline at end of file
+#endif
+

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