[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xenpaging: Small code style cleanups



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1266221894 0
# Node ID 714a3152102c66110a9c2493e126645e5df347f8
# Parent  0a1b69afe75474a45bfb933d1f59bdf3a1122303
xenpaging: Small code style cleanups

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/xenpaging/xenpaging.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff -r 0a1b69afe754 -r 714a3152102c tools/xenpaging/xenpaging.c
--- a/tools/xenpaging/xenpaging.c       Mon Feb 15 08:15:08 2010 +0000
+++ b/tools/xenpaging/xenpaging.c       Mon Feb 15 08:18:14 2010 +0000
@@ -457,17 +457,20 @@ int main(int argc, char *argv[])
     mem_event_request_t req;
     mem_event_response_t rsp;
     int i;
-    int rc = -1, rc1;
+    int rc = -1;
+    int rc1;
 
     int open_flags = O_CREAT | O_TRUNC | O_RDWR;
     mode_t open_mode = S_IRUSR | S_IRGRP | S_IROTH | S_IWUSR | S_IWGRP | 
S_IWOTH;
     char filename[80];
     int fd;
 
-    if ( argc != 3 ) {
+    if ( argc != 3 )
+    {
         fprintf(stderr, "Usage: %s <domain_id> <num_pages>\n", argv[0]);
-       return -1;
-    }
+        return -1;
+    }
+
     domain_id = atoi(argv[1]);
     num_pages = atoi(argv[2]);
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.