From: Tom Yu Date: Fri, 29 Mar 2002 05:12:09 +0000 (+0000) Subject: * kerberos.c, kerberos5.c (Data): Reindent to 8 columns. (yes, X-Git-Tag: krb5-1.3-alpha1~804 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=168c294fcd0b1e99623bdde38519560200bb4d01;p=krb5.git * kerberos.c, kerberos5.c (Data): Reindent to 8 columns. (yes, this is original BSD style) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14314 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/telnet/libtelnet/ChangeLog b/src/appl/telnet/libtelnet/ChangeLog index 495b5836c..f2223709d 100644 --- a/src/appl/telnet/libtelnet/ChangeLog +++ b/src/appl/telnet/libtelnet/ChangeLog @@ -1,3 +1,8 @@ +2002-03-29 Tom Yu + + * kerberos.c, kerberos5.c (Data): Reindent to 8 columns. (yes, + this is original BSD style) + 2002-03-28 Ken Raeburn * kerberos.c: Include errno.h. diff --git a/src/appl/telnet/libtelnet/kerberos.c b/src/appl/telnet/libtelnet/kerberos.c index 60554ce3c..847c082b8 100644 --- a/src/appl/telnet/libtelnet/kerberos.c +++ b/src/appl/telnet/libtelnet/kerberos.c @@ -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; diff --git a/src/appl/telnet/libtelnet/kerberos5.c b/src/appl/telnet/libtelnet/kerberos5.c index 50c3742fa..70a90074b 100644 --- a/src/appl/telnet/libtelnet/kerberos5.c +++ b/src/appl/telnet/libtelnet/kerberos5.c @@ -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;