X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Flinux-nat.c;h=6423ecc998e8f043c62468cb202b949d0a9addab;hb=b08b78e7d4bb56f395d3212eed6184ede236c760;hp=6b01a51a1fdfd14009fda7dc1fad9940091d8571;hpb=0b333c5e7d6c3fc65d37ffa11bd21ba52c4adb25;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 6b01a51a1f..6423ecc998 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -438,7 +438,7 @@ num_lwps (int pid) static void delete_lwp_cleanup (void *lp_voidp) { - struct lwp_info *lp = lp_voidp; + struct lwp_info *lp = (struct lwp_info *) lp_voidp; delete_lwp (lp->ptid); } @@ -1540,7 +1540,7 @@ linux_nat_detach (struct target_ops *ops, const char *args, int from_tty) /* Put the signal number in ARGS so that inf_ptrace_detach will pass it along with PTRACE_DETACH. */ - tem = alloca (8); + tem = (char *) alloca (8); xsnprintf (tem, 8, "%d", (int) WSTOPSIG (status)); args = tem; if (debug_linux_nat) @@ -2719,7 +2719,7 @@ running_callback (struct lwp_info *lp, void *data) static int count_events_callback (struct lwp_info *lp, void *data) { - int *count = data; + int *count = (int *) data; gdb_assert (count != NULL); @@ -2758,7 +2758,7 @@ lwp_status_pending_p (struct lwp_info *lp) static int select_event_lwp_callback (struct lwp_info *lp, void *data) { - int *selector = data; + int *selector = (int *) data; gdb_assert (selector != NULL); @@ -3641,7 +3641,7 @@ linux_nat_wait_1 (struct target_ops *ops, static int resume_stopped_resumed_lwps (struct lwp_info *lp, void *data) { - ptid_t *wait_ptid_p = data; + ptid_t *wait_ptid_p = (ptid_t *) data; if (!lp->stopped) { @@ -4940,7 +4940,7 @@ linux_nat_fileio_readlink (struct target_ops *self, return NULL; } - ret = xmalloc (len + 1); + ret = (char *) xmalloc (len + 1); memcpy (ret, buf, len); ret[len] = '\0'; return ret;