From: Ezra Peisach Date: Thu, 18 Oct 2001 20:05:00 +0000 (+0000) Subject: * sane_hostname.c (pty_make_sane_hostname): Do not declare addrbuf X-Git-Tag: krb5-1.3-alpha1~1028 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bd82fed7a15d970db767e1f0b2502f628a19680a;p=krb5.git * sane_hostname.c (pty_make_sane_hostname): Do not declare addrbuf twice, shadowing the first declaration. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13819 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/pty/ChangeLog b/src/util/pty/ChangeLog index 4c5b7bb08..c96855192 100644 --- a/src/util/pty/ChangeLog +++ b/src/util/pty/ChangeLog @@ -1,3 +1,9 @@ +2001-10-18 Ezra Peisach + + * sane_hostname.c (pty_make_sane_hostname): Do not declare addrbuf + twice, shadowing the first declaration. + + 2001-10-02 Ezra Peisach * Makefile.in (includes): Depend on diff --git a/src/util/pty/sane_hostname.c b/src/util/pty/sane_hostname.c index f1ce3362d..710c318ec 100644 --- a/src/util/pty/sane_hostname.c +++ b/src/util/pty/sane_hostname.c @@ -73,7 +73,6 @@ pty_make_sane_hostname(const struct sockaddr *addr, int maxlen, return ENOMEM; if (always_ipaddr) { - char addrbuf[NI_MAXHOST]; use_ipaddr: if (getnameinfo (addr, socklen (addr), addrbuf, sizeof (addrbuf), (char *)0, 0, NI_NUMERICHOST) == 0)