Protoization.

This commit is contained in:
Kevin Buettner 2000-09-13 01:55:17 +00:00
parent 78f0949be7
commit 064002de2b
3 changed files with 12 additions and 16 deletions

View file

@ -1,3 +1,9 @@
2000-09-12 Kevin Buettner <kevinb@redhat.com>
* lin-thread.c (threadlist_iter, get_lwp_from_thread_id,
thread_db_xfer_memory): Protoize.
* linux-thread.c (iterate_active_threads): Protoize.
2000-09-12 Kevin Buettner <kevinb@redhat.com> 2000-09-12 Kevin Buettner <kevinb@redhat.com>
* objfiles.c (objfile_relocate): Don't assume that offsets * objfiles.c (objfile_relocate): Don't assume that offsets

View file

@ -813,11 +813,8 @@ next_pending_event (void)
} }
static void static void
threadlist_iter (func, data, state, type) threadlist_iter (int (*func) (), void *data, td_thr_state_e state,
int (*func) (); td_thr_type_e type)
void *data;
td_thr_state_e state;
td_thr_type_e type;
{ {
int i; int i;
@ -1149,8 +1146,7 @@ get_lwp_from_thread_handle (td_thrhandle_t *th)
*/ */
static int /* lwpid_t or pid_t */ static int /* lwpid_t or pid_t */
get_lwp_from_thread_id (tid) get_lwp_from_thread_id (int tid /* thread_t? */)
int tid; /* thread_t? */
{ {
td_thrhandle_t th; td_thrhandle_t th;
td_err_e ret; td_err_e ret;
@ -1218,12 +1214,8 @@ thread_db_files_info (struct target_ops *tgt_vector)
*/ */
static int static int
thread_db_xfer_memory (memaddr, myaddr, len, dowrite, target) thread_db_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int dowrite,
CORE_ADDR memaddr; struct target_ops *target)
char *myaddr;
int len;
int dowrite;
struct target_ops *target; /* ignored */
{ {
struct cleanup *old_chain; struct cleanup *old_chain;
int ret; int ret;

View file

@ -568,9 +568,7 @@ restore_all_signals (void)
If ALL is non-zero, process all threads. If ALL is non-zero, process all threads.
If ALL is zero, skip threads with pending status. */ If ALL is zero, skip threads with pending status. */
static void static void
iterate_active_threads (func, all) iterate_active_threads (void (*func) (int), int all)
void (*func)(int);
int all;
{ {
CORE_ADDR descr; CORE_ADDR descr;
int pid; int pid;