summaryrefslogtreecommitdiff
path: root/src/common/socket.c
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/socket.c
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/socket.c')
-rw-r--r--src/common/socket.c12
1 files changed, 6 insertions, 6 deletions
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;