aboutsummaryrefslogtreecommitdiff
path: root/coreutils/uudecode.c
diff options
context:
space:
mode:
authorTim Riker <tim@rikers.org>2006-01-25 00:08:53 +0000
committerTim Riker <tim@rikers.org>2006-01-25 00:08:53 +0000
commitc1ef7bdd8d002ae0889efcf883d0e1b7faa938d4 (patch)
tree5f329b7d0c7f20ecced0dc7581a9ba6dc720d965 /coreutils/uudecode.c
parentf64ff682a3d58dbb627e760e6fe1ec21d9ccdf61 (diff)
downloadbusybox-w32-c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4.tar.gz
busybox-w32-c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4.tar.bz2
busybox-w32-c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4.zip
just whitespace
Diffstat (limited to 'coreutils/uudecode.c')
-rw-r--r--coreutils/uudecode.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c
index b4bcc72e2..da6490a81 100644
--- a/coreutils/uudecode.c
+++ b/coreutils/uudecode.c
@@ -56,7 +56,7 @@ static int read_stduu(FILE *src_stream, FILE *dst_stream)
56 bb_error_msg_and_die("Short file"); 56 bb_error_msg_and_die("Short file");
57 } 57 }
58 58
59 while (length > 0) { 59 while (length > 0) {
60 /* Merge four 6 bit chars to three 8 bit chars */ 60 /* Merge four 6 bit chars to three 8 bit chars */
61 fputc(((line_ptr[0] - 0x20) & 077) << 2 | ((line_ptr[1] - 0x20) & 077) >> 4, dst_stream); 61 fputc(((line_ptr[0] - 0x20) & 077) << 2 | ((line_ptr[1] - 0x20) & 077) >> 4, dst_stream);
62 line_ptr++; 62 line_ptr++;
@@ -65,14 +65,14 @@ static int read_stduu(FILE *src_stream, FILE *dst_stream)
65 break; 65 break;
66 } 66 }
67 67
68 fputc(((line_ptr[0] - 0x20) & 077) << 4 | ((line_ptr[1] - 0x20) & 077) >> 2, dst_stream); 68 fputc(((line_ptr[0] - 0x20) & 077) << 4 | ((line_ptr[1] - 0x20) & 077) >> 2, dst_stream);
69 line_ptr++; 69 line_ptr++;
70 length--; 70 length--;
71 if (length == 0) { 71 if (length == 0) {
72 break; 72 break;
73 } 73 }
74 74
75 fputc(((line_ptr[0] - 0x20) & 077) << 6 | ((line_ptr[1] - 0x20) & 077), dst_stream); 75 fputc(((line_ptr[0] - 0x20) & 077) << 6 | ((line_ptr[1] - 0x20) & 077), dst_stream);
76 line_ptr += 2; 76 line_ptr += 2;
77 length -= 2; 77 length -= 2;
78 } 78 }
@@ -130,10 +130,10 @@ static int read_base64(FILE *src_stream, FILE *dst_stream)
130 /* Merge 6 bit chars to 8 bit */ 130 /* Merge 6 bit chars to 8 bit */
131 fputc(translated[0] << 2 | translated[1] >> 4, dst_stream); 131 fputc(translated[0] << 2 | translated[1] >> 4, dst_stream);
132 if (count > 2) { 132 if (count > 2) {
133 fputc(translated[1] << 4 | translated[2] >> 2, dst_stream); 133 fputc(translated[1] << 4 | translated[2] >> 2, dst_stream);
134 } 134 }
135 if (count > 3) { 135 if (count > 3) {
136 fputc(translated[2] << 6 | translated[3], dst_stream); 136 fputc(translated[2] << 6 | translated[3], dst_stream);
137 } 137 }
138 } 138 }
139} 139}