* thread.c (thread_switch): Define as static.
(add_thread): Cast return value from xmalloc.
This commit is contained in:
parent
8828c36866
commit
3082244d35
2 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue