ia64/xen-unstable

changeset 1091:38210918dfa7

bitkeeper revision 1.725 (402cd7f2-ZVrk-pNHMfTzWvp1qG1GA)

pdb-stub.c:
Fix non-ansi-C usage in Xen.
author kaf24@scramble.cl.cam.ac.uk
date Fri Feb 13 13:58:10 2004 +0000 (2004-02-13)
parents e40ed5d51284
children 53b906cc1cba
files xen/arch/i386/pdb-stub.c
line diff
     1.1 --- a/xen/arch/i386/pdb-stub.c	Fri Feb 13 10:14:12 2004 +0000
     1.2 +++ b/xen/arch/i386/pdb-stub.c	Fri Feb 13 13:58:10 2004 +0000
     1.3 @@ -325,16 +325,12 @@ pdb_process_command (char *ptr, struct p
     1.4          int thread;
     1.5          if (hexToInt (&ptr, &thread))
     1.6          {
     1.7 +            struct task_struct *p;
     1.8              thread -= PDB_DOMAIN_OFFSET;
     1.9 -            struct task_struct *p = find_domain_by_id(thread);
    1.10 -            if (p == NULL)
    1.11 -            {
    1.12 +            if ( (p = find_domain_by_id(thread)) == NULL )
    1.13                  strcpy (pdb_out_buffer, "E00");
    1.14 -            }
    1.15              else
    1.16 -            {
    1.17                  strcpy (pdb_out_buffer, "OK");
    1.18 -            }
    1.19              put_task_struct(p);
    1.20          }
    1.21          break;