* lynx-nat.c (child_wait): Fix thinkos in struct target_waitstatus

changes (status -> ourstatus; declare status, etc.).
	* config/nm-lynx.h: Fix child_wait prototype and include target.h.
This commit is contained in:
Jim Kingdon 1994-01-14 19:57:50 +00:00
parent e70f2bde6f
commit 2919ae5a6a
1 changed files with 4 additions and 3 deletions

View File

@ -216,12 +216,13 @@ store_inferior_registers (regno)
of error; store status through argument pointer OURSTATUS. */
int
child_wait (pid, status)
child_wait (pid, ourstatus)
int pid;
struct target_waitstatus *ourstatus;
{
int save_errno;
int thread;
int status;
while (1)
{
@ -251,8 +252,8 @@ child_wait (pid, status)
if (pid != PIDGET (inferior_pid)) /* Some other process?!? */
continue;
/* thread = WIFTID (*status);*/
thread = *status >> 16;
/* thread = WIFTID (status);*/
thread = status >> 16;
/* Initial thread value can only be acquired via wait, so we have to
resort to this hack. */