Move realoc() decl to utils.c. s/realloc()/xrealloc()/.

This commit is contained in:
Andrew Cagney
2001-03-20 00:54:43 +00:00
parent 81b8eb809e
commit 0e52036f1f
7 changed files with 19 additions and 12 deletions

View File

@@ -780,8 +780,8 @@ insert_thread (int tid, int lid, td_thr_state_e state, td_thr_type_e type)
if (threadlist_top >= threadlist_max)
{
threadlist_max += THREADLIST_ALLOC;
threadlist = realloc (threadlist,
threadlist_max * sizeof (threadinfo));
threadlist = xrealloc (threadlist,
threadlist_max * sizeof (threadinfo));
if (threadlist == NULL)
return NULL;
}