AuditLog: Improve code quality

This patch fix the following things:
* add const keyword when mutability is not required
* cast unused parameters to void to be more explicit
* add parenthesis for better readability of some expressions
* check the returning value of functions
* avoid implicit casting by using matching types

Change-Id: Ia3d8dfb34d6a0bfb36f0cfca1fe6db9a1820ca33
Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
diff --git a/interface/include/audit_wrappers.h b/interface/include/audit_wrappers.h
index ec98144..2e3f62e 100644
--- a/interface/include/audit_wrappers.h
+++ b/interface/include/audit_wrappers.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2018, Arm Limited. All rights reserved.
+ * Copyright (c) 2018-2019, Arm Limited. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  *
@@ -53,8 +53,8 @@
  *
  */
 enum psa_audit_err audit_core_retrieve_record_wrapper(
-                                const struct audit_core_retrieve_input *input_s,
-                                   struct audit_core_retrieve_output *output_s);
+                             const struct audit_core_retrieve_input *input_s,
+                             const struct audit_core_retrieve_output *output_s);
 
 #ifdef __cplusplus
 }