* kerberos.c, kerberos5.c (Data): Reindent to 8 columns. (yes,
authorTom Yu <tlyu@mit.edu>
Fri, 29 Mar 2002 05:12:09 +0000 (05:12 +0000)
committerTom Yu <tlyu@mit.edu>
Fri, 29 Mar 2002 05:12:09 +0000 (05:12 +0000)
this is original BSD style)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14314 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/telnet/libtelnet/ChangeLog
src/appl/telnet/libtelnet/kerberos.c
src/appl/telnet/libtelnet/kerberos5.c

index 495b5836c08adb530a69f5b280929480685cf262..f2223709dbaf7853a93fb8b378e93231ffc12cb1 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-29  Tom Yu  <tlyu@mit.edu>
+
+       * kerberos.c, kerberos5.c (Data): Reindent to 8 columns. (yes,
+       this is original BSD style)
+
 2002-03-28  Ken Raeburn  <raeburn@mit.edu>
 
        * kerberos.c: Include errno.h.
index 60554ce3c61810ffc1d87a84349113cec6e592d2..847c082b8c29108d00ce4510745001c1ed5e3825 100644 (file)
@@ -145,7 +145,7 @@ Data(ap, type, d, c)
 {
         unsigned char *p = str_data + 4;
        const unsigned char *cd = (const unsigned char *)d;
-       size_t spaceleft = sizeof(str_data)-4;
+       size_t spaceleft = sizeof(str_data) - 4;
        if (c == -1)
                c = strlen((const char *)cd);
 
@@ -162,14 +162,14 @@ Data(ap, type, d, c)
        *p++ = type;
        spaceleft -= 3;
         while (c-- > 0) {
-         if ((*p++ = *cd++) == IAC) {
-           *p++ = IAC;
-           spaceleft--;
-         }
-         if ((--spaceleft < 4)&&c) {
-           errno = ENOMEM;
-           return -1;
-         }
+               if ((*p++ = *cd++) == IAC) {
+                       *p++ = IAC;
+                       spaceleft--;
+               }
+               if ((--spaceleft < 4) && c) {
+                       errno = ENOMEM;
+                       return -1;
+               }
         }
         *p++ = IAC;
         *p++ = SE;
index 50c3742fab1a1442e1138a5be0f43b8fbba6a8d2..70a90074b27c9502525bcb67ffdc72c53e9f75e9 100644 (file)
@@ -138,7 +138,7 @@ Data(ap, type, d, c)
 {
         unsigned char *p = str_data + 4;
        unsigned char *cd = (unsigned char *)d;
-       size_t spaceleft = sizeof(str_data)-4;
+       size_t spaceleft = sizeof(str_data) - 4;
 
        if (c == -1)
                c = strlen((char *)cd);
@@ -156,14 +156,14 @@ Data(ap, type, d, c)
        *p++ = type;
        spaceleft -= 3;
         while (c-- > 0) {
-         if ((*p++ = *cd++) == IAC) {
-           *p++ = IAC;
-           spaceleft--;
-         }
-         if ((--spaceleft < 4)&&c) {
-           errno = ENOMEM;
-           return -1;
-         }
+               if ((*p++ = *cd++) == IAC) {
+                       *p++ = IAC;
+                       spaceleft--;
+               }
+               if ((--spaceleft < 4) && c) {
+                       errno = ENOMEM;
+                       return -1;
+               }
         }
         *p++ = IAC;
         *p++ = SE;