summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKarel Zak2012-10-19 16:58:11 +0200
committerKarel Zak2012-10-19 16:58:11 +0200
commit4ca5163aa4d4ae39056bb8985c8e0eafc0bb8e34 (patch)
tree1040f9ebce6f14f6a1033b4c3a05cfd03406dcdb /include
parentlast: stop usig MAXHOSTNAMELEN (diff)
downloadkernel-qcow2-util-linux-4ca5163aa4d4ae39056bb8985c8e0eafc0bb8e34.tar.gz
kernel-qcow2-util-linux-4ca5163aa4d4ae39056bb8985c8e0eafc0bb8e34.tar.xz
kernel-qcow2-util-linux-4ca5163aa4d4ae39056bb8985c8e0eafc0bb8e34.zip
include/c: remove MAXHOSTNAMELEN macro
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/c.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/c.h b/include/c.h
index e15a994d7..e343778b4 100644
--- a/include/c.h
+++ b/include/c.h
@@ -224,17 +224,6 @@ static inline int dirfd(DIR *d)
#endif
/*
- * Fallback for MAXHOSTNAMELEN
- */
-#ifndef MAXHOSTNAMELEN
-# ifdef HOST_NAME_MAX
-# define MAXHOSTNAMELEN HOST_NAME_MAX
-# else
-# define MAXHOSTNAMELEN 64
-# endif
-#endif
-
-/*
* MAXHOSTNAMELEN replacement
*/
static inline size_t get_hostname_max(void)