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] Cleanup whitespace.

# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID 47295d6ca1d7f4f9045a0e99e38acf28788cc2e1
# Parent  ff5d7ccd8d69cefd7a6ce2c2ea213b33005fede6

Cleanup whitespace.

diff -r ff5d7ccd8d69 -r 47295d6ca1d7 
linux-2.6.11-xen-sparse/drivers/xen/xenbus/xenbus_xs.c
--- a/linux-2.6.11-xen-sparse/drivers/xen/xenbus/xenbus_xs.c    Tue Jul  5 
08:47:55 2005
+++ b/linux-2.6.11-xen-sparse/drivers/xen/xenbus/xenbus_xs.c    Tue Jul  5 
09:01:37 2005
@@ -54,7 +54,8 @@
 
        for (i = 0; !streq(errorstring, xsd_errors[i].errstring); i++) {
                if (i == ARRAY_SIZE(xsd_errors) - 1) {
-                       printk(KERN_WARNING "XENBUS xen store gave: unknown 
error %s",
+                       printk(KERN_WARNING
+                              "XENBUS xen store gave: unknown error %s",
                               errorstring);
                        return EINVAL;
                }
@@ -197,14 +198,14 @@
 /* Check if a path exists. Return 1 if it does. */
 int xs_exists(const char *path)
 {
-        char **dir;
-        int dir_n;
-
-        dir = xs_directory(path, &dir_n);
-        if(IS_ERR(dir))
-                return 0;
-        kfree(dir);
-        return 1;
+       char **dir;
+       int dir_n;
+
+       dir = xs_directory(path, &dir_n);
+       if (IS_ERR(dir))
+               return 0;
+       kfree(dir);
+       return 1;
 }
 
 /* Make a directory, creating dirs on the path to it if necessary.
@@ -212,30 +213,29 @@
  */
 int xs_mkdirs(const char *path)
 {
-        int err = 0;
-        char s[strlen(path) + 1], *p = s;
-
-        if(xs_exists(path))
-                goto out;
-        strcpy(p, path);
-        if(*p == '/')
-                p++;
-        for( ; ; ){
-                p = strchr(p, '/');
-                if(p)
-                        *p = '\0';
-                if(!xs_exists(s)){
-                        err = xs_mkdir(s);
-                        if(err)
-                                goto out;
-                        
-                }
-                if(!p)
-                        break;
-                *p++ = '/';
+       int err = 0;
+       char s[strlen(path) + 1], *p = s;
+
+       if (xs_exists(path))
+               goto out;
+       strcpy(p, path);
+       if (*p == '/')
+               p++;
+       for (;;) {
+               p = strchr(p, '/');
+               if (p)
+                       *p = '\0';
+               if (!xs_exists(s)) {
+                       err = xs_mkdir(s);
+                       if (err)
+                               goto out;
+               }
+               if (!p)
+                       break;
+               *p++ = '/';
        }
-  out:
-        return err;
+ out:
+       return err;
 }
 
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Cleanup whitespace., Xen patchbot -unstable <=