From 3082244d359779086d6d6f557ae82e24945af72c Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Mon, 2 Aug 1993 22:13:32 +0000 Subject: * thread.c (thread_switch): Define as static. (add_thread): Cast return value from xmalloc. --- gdb/thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/thread.c') diff --git a/gdb/thread.c b/gdb/thread.c index 207687a..ea5173f 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -76,7 +76,7 @@ add_thread (pid) { 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; @@ -180,7 +180,7 @@ info_threads_command (arg, from_tty) /* Switch from one thread to another. */ -void +static void thread_switch (pid) int pid; { -- cgit v1.1