Change type of second parameter back to size_t as per upcoming XPG6.
authorUlrich Drepper <drepper@redhat.com>
Sat, 17 Mar 2001 08:27:45 +0000 (08:27 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 17 Mar 2001 08:27:45 +0000 (08:27 +0000)
sysdeps/unix/sysv/aix/gethostname.c
sysdeps/unix/sysv/sysv4/gethostname.c

index 76c8c72..9482058 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2000, 2001 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
@@ -21,7 +21,7 @@
 int
 __gethostname (name, len)
      char *name;
-     socklen_t len;
+     size_t len;
 {
   return gethostname (name, len);
 }
index 3f967e1..1a1440f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1995, 1997, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1994, 1995, 1997, 2000, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Brendan Kehoe (brendan@zen.org).
 
@@ -27,7 +27,7 @@ extern int __sysinfo (int command, char *buf, long int count);
 int
 __gethostname (name, namelen)
      char *name;
-     socklen_t namelen;
+     size_t namelen;
 {
   return __sysinfo (SI_HOSTNAME, name, namelen);
 }