(add_thread): Cast return value from xmalloc.
Mon Aug 2 12:06:00 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
+ * thread.c (thread_switch): Define as static.
+ (add_thread): Cast return value from xmalloc.
+
* gdbtypes.c (fill_in_vptr_fieldno): Call check_stub_type.
* gdbtypes.{c,h}: Improve comments on vptr_fieldno.
{
struct thread_info *tp;
- tp = xmalloc (sizeof (struct thread_info));
+ tp = (struct thread_info *) xmalloc (sizeof (struct thread_info));
tp->pid = pid;
tp->num = ++highest_thread_num;
/* Switch from one thread to another. */
-void
+static void
thread_switch (pid)
int pid;
{