If HAVE_TYPE is define type contains the interface type.
authordrepper <drepper>
Wed, 25 Aug 1999 17:08:29 +0000 (17:08 +0000)
committerdrepper <drepper>
Wed, 25 Aug 1999 17:08:29 +0000 (17:08 +0000)
nss/digits_dots.c

index 03ae2ec..c3c6de7 100644 (file)
       host_addr_list_t *h_addr_ptrs;
       size_t size_needed;
       int addr_size;
-#ifndef HAVE_AF
-      int af = -1;
-#endif
 #ifdef HAVE_TYPE
       int af = type;
+#else
+# ifndef HAVE_AF
+      int af = -1;
+# endif
 #endif
 
       switch (af)
                          /* That's bad.  The user hasn't specified that she
                             allows IPv4 numeric addresses.  */
                          result = NULL;
-                         *herrno_p = HOST_NOT_FOUND;
+                         *h_errnop = HOST_NOT_FOUND;
                          goto done;
                        }
                      else
          host_addr_list_t *h_addr_ptrs;
          size_t size_needed;
          int addr_size;
-#ifndef HAVE_AF
-         int af = -1;
-#endif
 #ifdef HAVE_TYPE
          int af = type;
+#else
+# ifndef HAVE_AF
+         int af = -1;
+# endif
 #endif
 
          switch (af)