summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-12-09 21:01:15 +0000
committerJim Meyering <jim@meyering.net>2001-12-09 21:01:15 +0000
commitbb0d2464f86c501dbfe9bbf73cc11d33ad04c50f (patch)
tree32f33e7dcc517f799aa33e818ff25de2a108e615 /lib
parent2de5b9094829095d9d7e96d127f3c3047391b11d (diff)
downloadcoreutils-bb0d2464f86c501dbfe9bbf73cc11d33ad04c50f.tar.xz
Remove declarations of xmalloc and xrealloc.
Include xalloc.h instead.
Diffstat (limited to 'lib')
-rw-r--r--lib/xgethostname.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/xgethostname.c b/lib/xgethostname.c
index aa0b9dc85..4db3bbd16 100644
--- a/lib/xgethostname.c
+++ b/lib/xgethostname.c
@@ -1,5 +1,5 @@
/* xgethostname.c -- return current hostname with unlimited length
- Copyright (C) 1992, 1996, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1992, 1996, 2000, 2001 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -29,6 +29,7 @@ extern int errno;
#endif
#include "error.h"
+#include "xalloc.h"
#ifndef ENAMETOOLONG
# define ENAMETOOLONG 9999
@@ -39,8 +40,6 @@ extern int errno;
#endif
int gethostname ();
-char *xmalloc ();
-char *xrealloc ();
#ifndef INITIAL_HOSTNAME_LENGTH
# define INITIAL_HOSTNAME_LENGTH 34