From c43b80e61df1aeb6d7872d89baa35a28dd05bd40 Mon Sep 17 00:00:00 2001 From: Claudio Fontana Date: Tue, 1 Nov 2005 09:38:51 +0000 Subject: *** empty log message *** --- libidu/idwrite.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'libidu/idwrite.c') diff --git a/libidu/idwrite.c b/libidu/idwrite.c index 6257302..08aa480 100644 --- a/libidu/idwrite.c +++ b/libidu/idwrite.c @@ -18,14 +18,15 @@ */ #include +#include #include "idfile.h" #include "hash.h" -#include "xobstack.h" -#include "xmalloc.h" +#include "obstack.h" +#include "xalloc.h" #include "xnls.h" #include "error.h" -int file_link_qsort_compare __P((void const *x, void const *y)); +int file_link_qsort_compare (void const *x, void const *y); /****************************************************************************/ @@ -45,7 +46,7 @@ serialize_file_links (struct idhead *idhp) flinks_0 = (struct file_link **) hash_dump (&idhp->idh_file_link_table, 0, file_link_qsort_compare); end = &flinks_0[idhp->idh_file_link_table.ht_fill]; - parents = parents_0 = MALLOC (struct file_link *, idhp->idh_file_link_table.ht_fill); + parents = parents_0 = xmalloc (sizeof(struct file_link *) * idhp->idh_file_link_table.ht_fill); for (flinks = flinks_0; flinks < end; flinks++) { struct file_link *flink = *flinks; -- cgit v1.2.3