# HG changeset patch # User Jim Meyering # Date 1007931675 0 # Node ID f6f5a26c2bd5331064443f20eb389786bf6ea4ac # Parent 1bfa52c8c743478d61640cdc39caa4ada9738052 Remove declarations of xmalloc and xrealloc. Include xalloc.h instead. diff --git a/lib/xgethostname.c b/lib/xgethostname.c --- 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 @@ #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