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] reindent few lines that were using softtab instead of ha

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] reindent few lines that were using softtab instead of hardtab.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 24 Jan 2006 15:22:10 +0000
Delivery-date: Tue, 24 Jan 2006 15:31:55 +0000
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 vhanquez@xxxxxxxxxxxxxxxxxxxxxxx
# Node ID 1f87f39aa0e19527976780a9aab473d9fe191b8a
# Parent  c0a8a0b64f65a38385028be277b9b2bbfcef65fc
reindent few lines that were using softtab instead of hardtab.

Signed-off-by: Vincent Hanquez <vincent@xxxxxxxxxxxxx>

diff -r c0a8a0b64f65 -r 1f87f39aa0e1 tools/xenstore/xenstored_domain.c
--- a/tools/xenstore/xenstored_domain.c Tue Jan 24 13:14:42 2006
+++ b/tools/xenstore/xenstored_domain.c Tue Jan 24 13:21:11 2006
@@ -278,12 +278,12 @@
        talloc_set_destructor(domain, destroy_domain);
 
        /* Tell kernel we're interested in this event. */
-        bind.remote_domain = domid;
-        bind.remote_port   = port;
-        rc = ioctl(eventchn_fd, IOCTL_EVTCHN_BIND_INTERDOMAIN, &bind);
-        if (rc == -1)
-            return NULL;
-        domain->port = rc;
+       bind.remote_domain = domid;
+       bind.remote_port   = port;
+       rc = ioctl(eventchn_fd, IOCTL_EVTCHN_BIND_INTERDOMAIN, &bind);
+       if (rc == -1)
+           return NULL;
+       domain->port = rc;
 
        domain->conn = new_connection(writechn, readchn);
        domain->conn->domain = domain;
@@ -426,10 +426,10 @@
        int result;
        unsigned int domid;
 
-        if (!domid_str) {
-                send_error(conn, EINVAL);
-                return;
-        }
+       if (!domid_str) {
+               send_error(conn, EINVAL);
+               return;
+       }
 
        domid = atoi(domid_str);
        if (domid == DOMID_SELF)
@@ -461,42 +461,42 @@
 
 static int dom0_init(void) 
 { 
-        int rc, fd;
+       int rc, fd;
        evtchn_port_t port; 
-        unsigned long mfn; 
-        char str[20]; 
-        struct domain *dom0; 
-        
-        fd = open(XENSTORED_PROC_MFN, O_RDONLY); 
+       unsigned long mfn; 
+       char str[20]; 
+       struct domain *dom0; 
+
+       fd = open(XENSTORED_PROC_MFN, O_RDONLY); 
        if (fd == -1)
                return -1;
-        
-        rc = read(fd, str, sizeof(str)); 
+
+       rc = read(fd, str, sizeof(str)); 
        if (rc == -1)
                goto outfd;
-        str[rc] = '\0'; 
-        mfn = strtoul(str, NULL, 0); 
-        
-        close(fd); 
-        
-        fd = open(XENSTORED_PROC_PORT, O_RDONLY); 
+       str[rc] = '\0'; 
+       mfn = strtoul(str, NULL, 0); 
+
+       close(fd); 
+
+       fd = open(XENSTORED_PROC_PORT, O_RDONLY); 
        if (fd == -1)
                return -1;
-        
-        rc = read(fd, str, sizeof(str)); 
+
+       rc = read(fd, str, sizeof(str)); 
        if (rc == -1)
                goto outfd;
-        str[rc] = '\0'; 
-        port = strtoul(str, NULL, 0); 
-        
-        close(fd); 
-        
-        dom0 = new_domain(NULL, 0, mfn, port); 
-        talloc_steal(dom0->conn, dom0); 
-
-        evtchn_notify(dom0->port); 
-
-        return 0; 
+       str[rc] = '\0'; 
+       port = strtoul(str, NULL, 0); 
+
+       close(fd); 
+
+       dom0 = new_domain(NULL, 0, mfn, port); 
+       talloc_steal(dom0->conn, dom0); 
+
+       evtchn_notify(dom0->port); 
+
+       return 0; 
 outfd:
        close(fd);
        return -1;
@@ -549,9 +549,9 @@
        if (eventchn_fd < 0)
                barf_perror("Failed to open evtchn device");
 
-        if (dom0_init() != 0) 
-                barf_perror("Failed to initialize dom0 state"); 
-     
+       if (dom0_init() != 0) 
+               barf_perror("Failed to initialize dom0 state"); 
+
        bind.virq = VIRQ_DOM_EXC;
        rc = ioctl(eventchn_fd, IOCTL_EVTCHN_BIND_VIRQ, &bind);
        if (rc == -1)

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] reindent few lines that were using softtab instead of hardtab., Xen patchbot -unstable <=