summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-07-10 18:24:50 +0200
committerHaru <haru@dotalux.com>2014-07-11 08:48:11 +0200
commit46aa529396625efebdd637f540e9e104059866b6 (patch)
tree00bfc36e90ac8a14cb7ed3a699d6b0c056eb1a4f /src/test
parentbe75198abbd8420d25e67ee5d714422cf6c488db (diff)
downloadhercules-46aa529396625efebdd637f540e9e104059866b6.tar.gz
hercules-46aa529396625efebdd637f540e9e104059866b6.tar.bz2
hercules-46aa529396625efebdd637f540e9e104059866b6.tar.xz
hercules-46aa529396625efebdd637f540e9e104059866b6.zip
Explicitly specify 'void' when a function expects no arguments
- See CERT DCL20-C. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_spinlock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test_spinlock.c b/src/test/test_spinlock.c
index 2f4c2a5ca..19a25f9d2 100644
--- a/src/test/test_spinlock.c
+++ b/src/test/test_spinlock.c
@@ -98,16 +98,16 @@ return 0;
}//end: do_init()
-void do_abort(){
+void do_abort(void) {
}//end: do_abort()
-void set_server_type(){
+void set_server_type(void) {
SERVER_TYPE = SERVER_TYPE_UNKNOWN;
}//end: set_server_type()
-int do_final(){
+int do_final(void) {
return EXIT_SUCCESS;
}//end: do_final()