From: Ulrich Drepper Date: Mon, 11 Mar 2002 10:39:33 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2-3~1007 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d372f89a4c09559862055b9a59654f1a1a6d76b7;p=thirdparty%2Fglibc.git Update. * inet/rexec.c (ahostbuf): Define as static. --- diff --git a/ChangeLog b/ChangeLog index 21893d7496a..deee6dc4fff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2002-03-11 Ulrich Drepper + * inet/rexec.c (ahostbuf): Define as static. + * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden. (__ctype32_wctrans): Likewise. * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden. diff --git a/inet/rexec.c b/inet/rexec.c index 2a3a256f11c..c22e53d4746 100644 --- a/inet/rexec.c +++ b/inet/rexec.c @@ -45,7 +45,7 @@ static char sccsid[] = "@(#)rexec.c 8.1 (Berkeley) 6/4/93"; #include int rexecoptions; -char ahostbuf[NI_MAXHOST]; +static char ahostbuf[NI_MAXHOST]; int rexec_af(ahost, rport, name, pass, cmd, fd2p, af) @@ -68,7 +68,7 @@ rexec_af(ahost, rport, name, pass, cmd, fd2p, af) __snprintf(servbuff, sizeof(servbuff), "%d", ntohs(rport)); servbuff[sizeof(servbuff) - 1] = '\0'; - memset(&hints, 0, sizeof(hints)); + memset(&hints, '\0', sizeof(hints)); hints.ai_family = af; hints.ai_socktype = SOCK_STREAM; hints.ai_flags = AI_CANONNAME;