changeset 23359:099483c21989

Remove declarations of xmalloc and xrealloc. Include xalloc.h instead.
author Jim Meyering <jim@meyering.net>
date Sun, 09 Dec 2001 21:01:15 +0000
parents a03b8343cd79
children 0f44db6bd4aa
files lib/xgethostname.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lib/xgethostname.c	Sat Dec 08 06:57:58 2001 +0000
+++ b/lib/xgethostname.c	Sun Dec 09 21:01:15 2001 +0000
@@ -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 @@
 #endif
 
 #include "error.h"
+#include "xalloc.h"
 
 #ifndef ENAMETOOLONG
 # define ENAMETOOLONG 9999
@@ -39,8 +40,6 @@
 #endif
 
 int gethostname ();
-char *xmalloc ();
-char *xrealloc ();
 
 #ifndef INITIAL_HOSTNAME_LENGTH
 # define INITIAL_HOSTNAME_LENGTH 34