diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-08-02 22:13:32 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-08-02 22:13:32 +0000 |
commit | 3082244d359779086d6d6f557ae82e24945af72c (patch) | |
tree | dca9d92584fe4cf722fdec30928194c26515acae /gdb/thread.c | |
parent | 8828c3686667ce65cad0392990c411e807bc7e63 (diff) | |
download | gdb-3082244d359779086d6d6f557ae82e24945af72c.zip gdb-3082244d359779086d6d6f557ae82e24945af72c.tar.gz gdb-3082244d359779086d6d6f557ae82e24945af72c.tar.bz2 |
* thread.c (thread_switch): Define as static.
(add_thread): Cast return value from xmalloc.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r-- | gdb/thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; { |