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

[Xen-changelog] reindent few lines that were using softtab instead of hardtab.



# 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


 


Rackspace

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