Test library cleanups: Removing no longer used code from test.h eg. test_error.c is no longer in ltp, and the same for t_res.c so there is no need to include function prototypes for these. Adding void to functions that doesn't take any parameters; tst_exit() -> tst_exit(void); so code that pases parameters to these is not compileable any more. Also fixes all test broken by that change. As parameters passed to tst_exit() are ignored anyway it's quite safe to just remove them; but I'would rather see someone take a closer look. Code cleanups and fixes in tst_res.c:
* removed trivial and useless comments,
* cleaned coding style,
* and much more,
TODO: there is much redundant code in tst_res.c I'll eliminate that by static functions. Signed-off-by: chrubis@suse.cz.
diff --git a/include/compiler.h b/include/compiler.h
index 52a1fd1..4eb4f99 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -7,10 +7,10 @@
 #ifndef __LTP_COMPILER_H__
 #define __LTP_COMPILER_H__
 
-#define attribute_noreturn __attribute__((noreturn))
+#define LTP_ATTRIBUTE_NORETURN __attribute__((noreturn))
 
 #ifndef ARRAY_SIZE
-# define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
+	#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
 #endif
 
-#endif
+#endif /* __LTP_COMPILER_H__ */