summaryrefslogtreecommitdiff
path: root/imap/src/osdep/unix/tcp_unix.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2024-01-21 19:03:45 -0700
committerEduardo Chappa <chappa@washington.edu>2024-01-21 19:03:45 -0700
commita55202787df1d5cfd3e37cb4c021422ee4aa9530 (patch)
tree5e87cc67b7c0d5e1adcd686e9dc22f11a577e99c /imap/src/osdep/unix/tcp_unix.c
parent0f19719595e79516fdf57e59d0661260c23a1df4 (diff)
downloadalpine-a55202787df1d5cfd3e37cb4c021422ee4aa9530.tar.xz
* Clean up some function definitions to comply with strict
prototypes. Suggested and worked in part by Holger Hoffstätte.
Diffstat (limited to 'imap/src/osdep/unix/tcp_unix.c')
-rw-r--r--imap/src/osdep/unix/tcp_unix.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/imap/src/osdep/unix/tcp_unix.c b/imap/src/osdep/unix/tcp_unix.c
index cf18bb6f..e601164c 100644
--- a/imap/src/osdep/unix/tcp_unix.c
+++ b/imap/src/osdep/unix/tcp_unix.c
@@ -838,7 +838,7 @@ char *tcp_localhost (TCPSTREAM *stream)
* Returns: client host address
*/
-char *tcp_clientaddr ()
+char *tcp_clientaddr (void)
{
if (!myClientAddr) {
char buf[NI_MAXHOST];
@@ -860,7 +860,7 @@ char *tcp_clientaddr ()
* Returns: client host name
*/
-char *tcp_clienthost ()
+char *tcp_clienthost (void)
{
if (!myClientHost) {
char buf[NI_MAXHOST];
@@ -892,7 +892,7 @@ char *tcp_clienthost ()
* Returns: client port number
*/
-long tcp_clientport ()
+long tcp_clientport (void)
{
if (!myClientHost && !myClientAddr) tcp_clientaddr ();
return myClientPort;
@@ -902,7 +902,7 @@ long tcp_clientport ()
* Returns: server host address
*/
-char *tcp_serveraddr ()
+char *tcp_serveraddr (void)
{
if (!myServerAddr) {
char buf[NI_MAXHOST];
@@ -924,7 +924,7 @@ char *tcp_serveraddr ()
* Returns: server host name
*/
-char *tcp_serverhost ()
+char *tcp_serverhost (void)
{
if (!myServerHost) { /* once-only */
char buf[NI_MAXHOST];
@@ -948,7 +948,7 @@ char *tcp_serverhost ()
* Returns: server port number
*/
-long tcp_serverport ()
+long tcp_serverport (void)
{
if (!myServerHost && !myServerAddr) tcp_serveraddr ();
return myServerPort;