patch-src_addrinfo_c 715 B

123456789101112131415161718192021
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- ndisc6-0.9.8.orig/src/addrinfo.c 2008-05-01 14:52:28.000000000 +0200
  3. +++ ndisc6-0.9.8/src/addrinfo.c 2009-05-10 19:14:46.000000000 +0200
  4. @@ -53,7 +53,7 @@ gai_perror (int errval, const char *msg)
  5. static int
  6. printnames (const char *name, int family, int aflags, int nflags, bool single)
  7. {
  8. - struct addrinfo hints, *res;
  9. + struct addrinfo hints, *res, *ptr;
  10. memset (&hints, 0, sizeof (hints));
  11. hints.ai_family = family;
  12. @@ -67,7 +67,7 @@ printnames (const char *name, int family
  13. return -1;
  14. }
  15. - for (struct addrinfo *ptr = res; ptr != NULL; ptr = ptr->ai_next)
  16. + for (ptr = res; ptr != NULL; ptr = ptr->ai_next)
  17. {
  18. char hostname[NI_MAXHOST];