debuggers.hg

changeset 20988:714a3152102c

xenpaging: Small code style cleanups

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Feb 15 08:18:14 2010 +0000 (2010-02-15)
parents 0a1b69afe754
children 560277d2fd20
files tools/xenpaging/xenpaging.c
line diff
     1.1 --- a/tools/xenpaging/xenpaging.c	Mon Feb 15 08:15:08 2010 +0000
     1.2 +++ b/tools/xenpaging/xenpaging.c	Mon Feb 15 08:18:14 2010 +0000
     1.3 @@ -457,17 +457,20 @@ int main(int argc, char *argv[])
     1.4      mem_event_request_t req;
     1.5      mem_event_response_t rsp;
     1.6      int i;
     1.7 -    int rc = -1, rc1;
     1.8 +    int rc = -1;
     1.9 +    int rc1;
    1.10  
    1.11      int open_flags = O_CREAT | O_TRUNC | O_RDWR;
    1.12      mode_t open_mode = S_IRUSR | S_IRGRP | S_IROTH | S_IWUSR | S_IWGRP | S_IWOTH;
    1.13      char filename[80];
    1.14      int fd;
    1.15  
    1.16 -    if ( argc != 3 ) {
    1.17 +    if ( argc != 3 )
    1.18 +    {
    1.19          fprintf(stderr, "Usage: %s <domain_id> <num_pages>\n", argv[0]);
    1.20 -	return -1;
    1.21 +        return -1;
    1.22      }
    1.23 +
    1.24      domain_id = atoi(argv[1]);
    1.25      num_pages = atoi(argv[2]);
    1.26