*
*/
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
/*
#define TEST
len_addr_list += align (hp->h_length, ALIGNMENT)
+ sizeof (char *);
}
-
+
cp = (struct hostent *) xmalloc (len_ent + len_name + len_aliases
+ len_addr_list);
/* Map IP to hostname, and then map back to addr to make sure it is a
- * reliable hostname
+ * reliable hostname
*/
struct hostent *
get_reliable_hostbyaddr(const char *addr, int len, int type)
if (hp)
{
- printf ("official hostname: %s\n", hp->h_name);
+ printf ("official hostname: %s\n", hp->h_name);
printf ("aliases:\n");
for (sp = hp->h_aliases; *sp; sp++)
printf (" %s\n", *sp);