summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/socketaddr.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/socketaddr.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/socketaddr.c')
-rw-r--r--otherlibs/unix/socketaddr.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/otherlibs/unix/socketaddr.c b/otherlibs/unix/socketaddr.c
index d4485eeb7..db1fc23b0 100644
--- a/otherlibs/unix/socketaddr.c
+++ b/otherlibs/unix/socketaddr.c
@@ -30,8 +30,7 @@
union sock_addr_union sock_addr;
int sock_addr_len;
-value alloc_inet_addr(a)
- unsigned int a;
+value alloc_inet_addr(unsigned int a)
{
value res;
res = alloc_string(sizeof(uint32));
@@ -39,8 +38,7 @@ value alloc_inet_addr(a)
return res;
}
-void get_sockaddr(a)
- value a;
+void get_sockaddr(value a)
{
switch(Tag_val(a)) {
#ifndef _WIN32
@@ -76,7 +74,7 @@ void get_sockaddr(a)
}
}
-value alloc_sockaddr()
+value alloc_sockaddr(void)
{
value res;
switch(sock_addr.s_gen.sa_family) {