summaryrefslogtreecommitdiff
path: root/src/common/socket.c
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2009-07-05 23:52:02 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2009-07-05 23:52:02 +0200
commitad8f53edc80811b933c9e2e0f469ef6e6a25972d (patch)
tree8521b323327952857072214e5a5cbb9195601cb5 /src/common/socket.c
parente1871219cae287d32a3dff716f8824c1ead62001 (diff)
downloadtmwa-ad8f53edc80811b933c9e2e0f469ef6e6a25972d.tar.gz
tmwa-ad8f53edc80811b933c9e2e0f469ef6e6a25972d.tar.bz2
tmwa-ad8f53edc80811b933c9e2e0f469ef6e6a25972d.tar.xz
tmwa-ad8f53edc80811b933c9e2e0f469ef6e6a25972d.zip
The function should return a value
Diffstat (limited to 'src/common/socket.c')
-rw-r--r--src/common/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/socket.c b/src/common/socket.c
index 66093f7..f968373 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -153,7 +153,7 @@ static int connect_client(int listen_fd)
fd_max = fd + 1;
} else if (fd == -1) {
perror("accept");
- return;
+ return -1;
}
// setsockopt(fd,SOL_SOCKET,SO_REUSEADDR,NULL,0);