* fake-addrinfo.h (translate_h_errno): Supply a default value in case some
authorKen Raeburn <raeburn@mit.edu>
Thu, 19 Jul 2001 16:40:52 +0000 (16:40 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 19 Jul 2001 16:40:52 +0000 (16:40 +0000)
unrecognized code is returned.
(HAVE_GETNAMEINFO): Undefine before defining, just in case.

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

src/include/ChangeLog
src/include/fake-addrinfo.h

index 618e68c4a9013ab6cee546a19c2c64d8533c87ad..6fb2ee35ab116139ba1b3e81618421cb2a26b432 100644 (file)
@@ -1,5 +1,9 @@
 2001-07-19  Ken Raeburn  <raeburn@mit.edu>
 
+       * fake-addrinfo.h (translate_h_errno): Supply a default value in
+       case some unrecognized code is returned.
+       (HAVE_GETNAMEINFO): Undefine before defining, just in case.
+
        * krb5.hin (krb5_os_hostaddr): Declaration moved...
        * k5-int.h (krb5_os_hostaddr): ...to here.
 
index a543f98d23de107c7674ced1e8464ba71217b888..6036b4cac3b09e2e1997a3a3da56225c4fe84b39 100644 (file)
@@ -364,13 +364,16 @@ static int translate_h_errno (int h)
     case NO_ADDRESS:
 #endif
        return EAI_NODATA;
+    default:
+       return EAI_SYSTEM;
     }
 }
 
 #endif /* FAI_IMPLEMENTATION */
 
-#define HAVE_GETADDRINFO       /* fake it */
-#define HAVE_GETNAMEINFO       /* well, soon... */
+#define HAVE_GETADDRINFO
+#undef  HAVE_GETNAMEINFO
+#define HAVE_GETNAMEINFO
 
 #endif /* HAVE_GETADDRINFO */