+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.
{
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);
*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;
{
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);
*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;