# HG changeset patch # User lucabe # Date 1194523179 0 # Node ID 07e9512426171f477bdfe7355dbf541d7a28aa1c # Parent 97fe561c8999f3d604177b688503937973b1096a Reindent the code after last commit diff -r 97fe561c8999 -r 07e951242617 base64.c --- a/base64.c Thu Nov 08 11:56:50 2007 +0000 +++ b/base64.c Thu Nov 08 11:59:39 2007 +0000 @@ -83,18 +83,18 @@ buf_len < len * 4 / 3 + 12) return NULL; ret = dst = buf; - while (bytes_remaining) { - i_bits = (i_bits << 8) + *src++; - bytes_remaining--; - i_shift += 8; + while (bytes_remaining) { + i_bits = (i_bits << 8) + *src++; + bytes_remaining--; + i_shift += 8; - do { - *dst++ = b64[(i_bits << 6 >> i_shift) & 0x3f]; - i_shift -= 6; - } while (i_shift > 6 || (bytes_remaining == 0 && i_shift > 0)); - } - while ((dst - ret) & 3) - *dst++ = '='; + do { + *dst++ = b64[(i_bits << 6 >> i_shift) & 0x3f]; + i_shift -= 6; + } while (i_shift > 6 || (bytes_remaining == 0 && i_shift > 0)); + } + while ((dst - ret) & 3) + *dst++ = '='; *dst = '\0'; return ret;