From 0fd43249a0c6d180a3a2ffc0ff850f6718592a6f Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 28 Feb 1999 13:01:23 +0000 Subject: 1999-02-28 Mark Kettenis * sysdeps/mach/hurd/getsockname.c (getsockname): Set *LEN to the actual length if the adress length is smaller than the input value. Change type of *LEN paramater to socklen_t. * sysdeps/mach/hurd/getpeername.c (getpeername): Likewise. * sysdeps/mach/hurd/accept.c (accept): Likewise. * sysdeps/mach/hurd/recvfrom.c (recvfrom): Likewise. * sysdeps/mach/hurd/sendto.c (sendto): Change type of ADDR_LEN paramater to socklen_t. --- sysdeps/mach/hurd/sendto.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sysdeps/mach/hurd/sendto.c') diff --git a/sysdeps/mach/hurd/sendto.c b/sysdeps/mach/hurd/sendto.c index e59505e9f2..4f0ada7141 100644 --- a/sysdeps/mach/hurd/sendto.c +++ b/sysdeps/mach/hurd/sendto.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -18,11 +18,11 @@ #include #include +#include #include -#include #include -#include #include +#include /* Send N bytes of BUF on socket FD to peer at address ADDR (which is ADDR_LEN bytes long). Returns the number sent, or -1 for errors. */ @@ -32,7 +32,7 @@ sendto (int fd, size_t n, int flags, const struct sockaddr_un *addr, - size_t addr_len) + socklen_t addr_len) { addr_port_t aport; error_t err; -- cgit 1.4.1