[PATCH 2/2] malloc.h: fix codingstyle

Sascha Hauer s.hauer at pengutronix.de
Mon Jul 7 23:34:22 PDT 2014


- Remove trailing newline
- use void *fn instead of void* fn

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 include/malloc.h | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/include/malloc.h b/include/malloc.h
index 46147bc..a36f3c0 100644
--- a/include/malloc.h
+++ b/include/malloc.h
@@ -3,15 +3,12 @@
 
 #include <types.h>
 
-/* Public routines */
-
-void* malloc(size_t);
-void free(void*);
-void* realloc(void*, size_t);
-void* memalign(size_t, size_t);
-void* calloc(size_t, size_t);
+void *malloc(size_t);
+void free(void *);
+void *realloc(void *, size_t);
+void *memalign(size_t, size_t);
+void *calloc(size_t, size_t);
 void malloc_stats(void);
 void *sbrk(ptrdiff_t increment);
 
-#endif
-
+#endif /* __MALLOC_H */
-- 
2.0.0




More information about the barebox mailing list