about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/getsockname.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/getsockname.c')
-rw-r--r--sysdeps/mach/hurd/getsockname.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/getsockname.c b/sysdeps/mach/hurd/getsockname.c
index e6dc542fae..ad447eec79 100644
--- a/sysdeps/mach/hurd/getsockname.c
+++ b/sysdeps/mach/hurd/getsockname.c
@@ -25,12 +25,13 @@
 
 /* Put the local address of FD into *ADDR and its length in *LEN.  */
 int
-getsockname (fd, addr, len)
+getsockname (fd, addrarg, len)
      int fd;
-     struct sockaddr *addr;
+     __SOCKADDR_ARG addrarg;
      size_t *len;
 {
   error_t err;
+  struct sockaddr *addr = addrarg.__sockaddr__;
   char *buf = (char *) addr;
   mach_msg_type_number_t buflen = *len;
   int type;