From: Ulrich Drepper Date: Sat, 17 Mar 2001 08:27:45 +0000 (+0000) Subject: Change type of second parameter back to size_t as per upcoming XPG6. X-Git-Tag: glibc-2.16-ports-merge^2~2016 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e46c35fd6bfb1bc357749c8c0ffbe19b4fa79216;p=platform%2Fupstream%2Fglibc.git Change type of second parameter back to size_t as per upcoming XPG6. --- diff --git a/sysdeps/unix/sysv/aix/gethostname.c b/sysdeps/unix/sysv/aix/gethostname.c index 76c8c72..9482058 100644 --- a/sysdeps/unix/sysv/aix/gethostname.c +++ b/sysdeps/unix/sysv/aix/gethostname.c @@ -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); } diff --git a/sysdeps/unix/sysv/sysv4/gethostname.c b/sysdeps/unix/sysv/sysv4/gethostname.c index 3f967e1..1a1440f 100644 --- a/sysdeps/unix/sysv/sysv4/gethostname.c +++ b/sysdeps/unix/sysv/sysv4/gethostname.c @@ -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); }