summaryrefslogtreecommitdiffstats
path: root/term-utils/wall.c
diff options
context:
space:
mode:
authorKarel Zak2012-05-29 10:08:25 +0200
committerKarel Zak2012-05-29 10:08:25 +0200
commit3a9c3f3fb757dd04b8ac44c575c65dda6bae054b (patch)
treecb920932374f707a4083d3db1205e52c86aac0fd /term-utils/wall.c
parentlogger: use memcpy instead of bcopy (diff)
downloadkernel-qcow2-util-linux-3a9c3f3fb757dd04b8ac44c575c65dda6bae054b.tar.gz
kernel-qcow2-util-linux-3a9c3f3fb757dd04b8ac44c575c65dda6bae054b.tar.xz
kernel-qcow2-util-linux-3a9c3f3fb757dd04b8ac44c575c65dda6bae054b.zip
include/c: move fallback for MAXHOSTNAMELEN to c.h
Reported-by: Thomas Schwinge <thomas@codesourcery.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'term-utils/wall.c')
-rw-r--r--term-utils/wall.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/term-utils/wall.c b/term-utils/wall.c
index ec9e93236..0291a5b60 100644
--- a/term-utils/wall.c
+++ b/term-utils/wall.c
@@ -72,14 +72,6 @@
#define IGNOREUSER "sleeper"
#define WRITE_TIME_OUT 300 /* in seconds */
-#ifndef MAXHOSTNAMELEN
-# ifdef HOST_NAME_MAX
-# define MAXHOSTNAMELEN HOST_NAME_MAX
-# else
-# define MAXHOSTNAMELEN 64
-# endif
-#endif
-
/* Function prototypes */
char *makemsg(char *fname, size_t *mbufsize, int print_banner);
static void usage(FILE *out);