WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xenpaging: Small code style cleanups
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 15 Feb 2010 00:35:14 -0800
Delivery-date: Mon, 15 Feb 2010 00:35:57 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xenpaging: Small code style cleanups, Xen patchbot-unstable <=