summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-01-09 19:06:29 +0100
committerHaru <haru@dotalux.com>2016-01-09 19:11:01 +0100
commit10f9f4282097f177d6ee0b26572dcf4308e6d6fb (patch)
tree0c010c11403697a03baa4c783366e781a118ebc9 /src/common
parent25edecdacfba89de097e61fd0958236a8cd90a6b (diff)
downloadhercules-10f9f4282097f177d6ee0b26572dcf4308e6d6fb.tar.gz
hercules-10f9f4282097f177d6ee0b26572dcf4308e6d6fb.tar.bz2
hercules-10f9f4282097f177d6ee0b26572dcf4308e6d6fb.tar.xz
hercules-10f9f4282097f177d6ee0b26572dcf4308e6d6fb.zip
Corrected various zero-argument function definitions
- Functions should always specify their arguments, even if they take none. In C, not specifying arguments is different than specifying (void). Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/mutex.h4
-rw-r--r--src/common/socket.c12
2 files changed, 8 insertions, 8 deletions
diff --git a/src/common/mutex.h b/src/common/mutex.h
index 5127d9f4b..e49791493 100644
--- a/src/common/mutex.h
+++ b/src/common/mutex.h
@@ -32,7 +32,7 @@ typedef struct racond racond; // Condition Var
*
* @return not NULL
*/
-ramutex *ramutex_create();
+ramutex *ramutex_create(void);
/**
* Destroys a Mutex
@@ -70,7 +70,7 @@ void ramutex_unlock(ramutex *m);
*
* @return not NULL
*/
-racond *racond_create();
+racond *racond_create(void);
/**
* Destroy a Condition variable
diff --git a/src/common/socket.c b/src/common/socket.c
index f67c3d074..ad90355a3 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -76,11 +76,11 @@ struct socket_interface *sockt;
struct socket_data **session;
#ifdef SEND_SHORTLIST
- // Add a fd to the shortlist so that it'll be recognized as a fd that needs
- // sending done on it.
- void send_shortlist_add_fd(int fd);
- // Do pending network sends (and eof handling) from the shortlist.
- void send_shortlist_do_sends();
+// Add a fd to the shortlist so that it'll be recognized as a fd that needs
+// sending done on it.
+void send_shortlist_add_fd(int fd);
+// Do pending network sends (and eof handling) from the shortlist.
+void send_shortlist_do_sends(void);
#endif
/////////////////////////////////////////////////////////////////////
@@ -1570,7 +1570,7 @@ void send_shortlist_add_fd(int fd)
}
// Do pending network sends and eof handling from the shortlist.
-void send_shortlist_do_sends()
+void send_shortlist_do_sends(void)
{
int i;