* sane_hostname.c (pty_make_sane_hostname): Do not declare addrbuf
authorEzra Peisach <epeisach@mit.edu>
Thu, 18 Oct 2001 20:05:00 +0000 (20:05 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 18 Oct 2001 20:05:00 +0000 (20:05 +0000)
twice, shadowing the first declaration.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13819 dc483132-0cff-0310-8789-dd5450dbe970

src/util/pty/ChangeLog
src/util/pty/sane_hostname.c

index 4c5b7bb08632f63ad1a03fd2196b49e323059251..c96855192f89d91083343de63556cc7118518f61 100644 (file)
@@ -1,3 +1,9 @@
+2001-10-18  Ezra Peisach  <epeisach@mit.edu>
+
+       * sane_hostname.c (pty_make_sane_hostname): Do not declare addrbuf
+       twice, shadowing the first declaration.
+
+
 2001-10-02  Ezra Peisach  <epeisach@mit.edu>
 
        * Makefile.in (includes): Depend on
index f1ce3362da99e014e64524241f5e7df7686830f9..710c318ec9c72e01534e1f9d3027f3cc27b82275 100644 (file)
@@ -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)