From: Ulrich Drepper Date: Sun, 2 Apr 2000 07:59:31 +0000 (+0000) Subject: (__gethostname): Change type of second parameter to socklen_t. X-Git-Tag: upstream/2.30~10627^2~2513 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9de792e3c0cb05a1d7cf17dc5f2dc19e10847fc3;p=external%2Fglibc.git (__gethostname): Change type of second parameter to socklen_t. --- diff --git a/sysdeps/unix/sysv/sysv4/gethostname.c b/sysdeps/unix/sysv/sysv4/gethostname.c index 558d16e..3f967e1 100644 --- a/sysdeps/unix/sysv/sysv4/gethostname.c +++ b/sysdeps/unix/sysv/sysv4/gethostname.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994, 1995, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1994, 1995, 1997, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Brendan Kehoe (brendan@zen.org). @@ -22,12 +22,12 @@ #include #include -extern int __sysinfo __P ((int command, char *buf, long count)); +extern int __sysinfo (int command, char *buf, long int count); int __gethostname (name, namelen) char *name; - size_t namelen; + socklen_t namelen; { return __sysinfo (SI_HOSTNAME, name, namelen); }