summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/listen.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1997-09-02 12:55:01 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1997-09-02 12:55:01 +0000
commit1517cea772058b0fcbe778d05b8b99c7e6f3b25f (patch)
treea2d817fe623f81b7729ed3cd2e128cad91eca02b /otherlibs/unix/listen.c
parentd75918f7e459b507ac6b4b95f14df0a1eedd4937 (diff)
Sources C convertis en ANSI C
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1696 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/unix/listen.c')
-rw-r--r--otherlibs/unix/listen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/otherlibs/unix/listen.c b/otherlibs/unix/listen.c
index f8db79407..9992625a3 100644
--- a/otherlibs/unix/listen.c
+++ b/otherlibs/unix/listen.c
@@ -18,8 +18,7 @@
#include <sys/socket.h>
-value unix_listen(sock, backlog)
- value sock, backlog;
+value unix_listen(value sock, value backlog)
{
if (listen(Int_val(sock), Int_val(backlog)) == -1) uerror("listen", Nothing);
return Val_unit;
@@ -27,6 +26,7 @@ value unix_listen(sock, backlog)
#else
-value unix_listen() { invalid_argument("listen not implemented"); }
+value unix_listen(value sock, value backlog)
+{ invalid_argument("listen not implemented"); }
#endif