X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fwait-process.c;h=268be32f61148e9b6da04b1d2a6b5c208074d8ee;hb=8436691c12d9e2397dcd604c7ea261314520af9a;hp=bca1dc4243b90f3c3cba40bebb64a6d34424f058;hpb=a21556a587824d9ed5e142f506049753bac6dbf5;p=gnulib.git diff --git a/lib/wait-process.c b/lib/wait-process.c index bca1dc424..268be32f6 100644 --- a/lib/wait-process.c +++ b/lib/wait-process.c @@ -1,5 +1,5 @@ /* Waiting for a subprocess to finish. - Copyright (C) 2001-2003, 2005 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005-2007 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software; you can redistribute it and/or modify @@ -17,9 +17,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Specification. */ #include "wait-process.h" @@ -91,7 +89,6 @@ #endif #include "error.h" -#include "exit.h" #include "fatal-signal.h" #include "xalloc.h" #include "gettext.h" @@ -205,6 +202,7 @@ register_slave_subprocess (pid_t child) slaves_entry_t *old_slaves = slaves; size_t new_slaves_allocated = 2 * slaves_allocated; slaves_entry_t *new_slaves = + (slaves_entry_t *) malloc (new_slaves_allocated * sizeof (slaves_entry_t)); if (new_slaves == NULL) {