diff options
author | neilbrown <neilbrown> | 2005-12-20 04:12:42 +0000 |
---|---|---|
committer | neilbrown <neilbrown> | 2005-12-20 04:12:42 +0000 |
commit | ac5b03be829b4c9369ebfb07a688308721103228 (patch) | |
tree | 90fd0ee1a8e08c241bf3fd0d54690b888e4b5926 /support/export/hostname.c | |
parent | 371ca25167a217d647971384c37aa3fcee8a4aef (diff) | |
download | nfs-utils-ac5b03be829b4c9369ebfb07a688308721103228.tar.gz nfs-utils-ac5b03be829b4c9369ebfb07a688308721103228.tar.xz nfs-utils-ac5b03be829b4c9369ebfb07a688308721103228.zip |
Autogen update
Diffstat (limited to 'support/export/hostname.c')
-rw-r--r-- | support/export/hostname.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/support/export/hostname.c b/support/export/hostname.c index 3957d80..8a23a89 100644 --- a/support/export/hostname.c +++ b/support/export/hostname.c @@ -5,7 +5,9 @@ * */ -#include "config.h" +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif /* #define TEST @@ -118,7 +120,7 @@ hostent_dup (struct hostent *hp) len_addr_list += align (hp->h_length, ALIGNMENT) + sizeof (char *); } - + cp = (struct hostent *) xmalloc (len_ent + len_name + len_aliases + len_addr_list); @@ -219,7 +221,7 @@ matchhostname (const char *h1, const char *h2) /* 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) @@ -275,7 +277,7 @@ print_host (struct hostent *hp) 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); |