]> arthur.barton.de Git - netatalk.git/commitdiff
Trunk-BP: indention.
authorsrittau <srittau>
Thu, 7 Feb 2002 23:56:33 +0000 (23:56 +0000)
committersrittau <srittau>
Thu, 7 Feb 2002 23:56:33 +0000 (23:56 +0000)
etc/afpd/file.c
etc/afpd/volume.c

index c644da03d4944b02a6ac45076ee7dd9a265363cc..a7b2933b3dab2d1b33f184070d75ab3241150390 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: file.c,v 1.29.2.3 2002-01-14 02:50:34 srittau Exp $
+ * $Id: file.c,v 1.29.2.4 2002-02-07 23:56:33 srittau Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -89,11 +89,11 @@ char *strchr (), *strrchr ();
  */
 
 const u_char ufinderi[] = {
-    'T', 'E', 'X', 'T', 'U', 'N', 'I', 'X',
-    0, 0, 0, 0, 0, 0, 0, 0,
-    0, 0, 0, 0, 0, 0, 0, 0,
-    0, 0, 0, 0, 0, 0, 0, 0
-};
+                              'T', 'E', 'X', 'T', 'U', 'N', 'I', 'X',
+                              0, 0, 0, 0, 0, 0, 0, 0,
+                              0, 0, 0, 0, 0, 0, 0, 0,
+                              0, 0, 0, 0, 0, 0, 0, 0
+                          };
 
 int getfilparams(struct vol *vol,
                  u_int16_t bitmap,
@@ -1679,7 +1679,7 @@ int               ibuflen, *rbuflen;
         case EPERM:
         case EACCES:
             err = AFPERR_ACCESS;
-                       break;
+            break;
         default:
             err = AFPERR_PARAM;
         }
@@ -1692,7 +1692,7 @@ int               ibuflen, *rbuflen;
         case EPERM:
         case EACCES:
             err = AFPERR_ACCESS;
-                       break;
+            break;
         default:
             err = AFPERR_PARAM;
         }
index 2866a39450f454e947cbad0043b260aee1e91cf1..52f7eeb8e63ecfef67a587c913f65789aa204e85 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: volume.c,v 1.14.2.3 2002-01-23 18:34:14 jmarcus Exp $
+ * $Id: volume.c,v 1.14.2.4 2002-02-07 23:57:54 srittau Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -1399,23 +1399,23 @@ int             ibuflen, *rbuflen;
 
 int wincheck(struct vol *vol, const char *path)
 {
-       int len;
+    int len;
 
-       if (!(vol->v_flags & AFPVOL_MSWINDOWS))
-               return 1;
+    if (!(vol->v_flags & AFPVOL_MSWINDOWS))
+        return 1;
 
-       /* empty paths are not allowed */
-       if ((len = strlen(path)) == 0)
-               return 0;
+    /* empty paths are not allowed */
+    if ((len = strlen(path)) == 0)
+        return 0;
 
-       /* leading or trailing whitespaces are not allowed */
-       if ((*path == ' ') || (path[len-1] == ' '))
-               return 0;
+    /* leading or trailing whitespaces are not allowed */
+    if ((*path == ' ') || (path[len-1] == ' '))
+        return 0;
 
-       /* certain characters are not allowed */
-       if (strpbrk(path, MSWINDOWS_BADCHARS))
-               return 0;
+    /* certain characters are not allowed */
+    if (strpbrk(path, MSWINDOWS_BADCHARS))
+        return 0;
 
-       /* everything else is okay */
-       return 1;
+    /* everything else is okay */
+    return 1;
 }