From 1517cea772058b0fcbe778d05b8b99c7e6f3b25f Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Tue, 2 Sep 1997 12:55:01 +0000 Subject: Sources C convertis en ANSI C git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1696 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- otherlibs/unix/socketaddr.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'otherlibs/unix/socketaddr.c') 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) { -- cgit v1.2.3-70-g09d2