diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-03-11 10:39:33 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-03-11 10:39:33 +0000 |
commit | d372f89a4c09559862055b9a59654f1a1a6d76b7 (patch) | |
tree | 7022a622c4f2a650e62eb6d11576b06f0603bb10 /inet | |
parent | 20febd6a63d1fbfbcb062760b142f67f33a94e91 (diff) | |
download | glibc-d372f89a4c09559862055b9a59654f1a1a6d76b7.zip glibc-d372f89a4c09559862055b9a59654f1a1a6d76b7.tar.gz glibc-d372f89a4c09559862055b9a59654f1a1a6d76b7.tar.bz2 |
Update.
* inet/rexec.c (ahostbuf): Define as static.
Diffstat (limited to 'inet')
-rw-r--r-- | inet/rexec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inet/rexec.c b/inet/rexec.c index 2a3a256..c22e53d 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 <unistd.h> 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; |