aboutsummaryrefslogtreecommitdiff
path: root/coreutils/uudecode.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-27 09:02:31 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-27 09:02:31 +0000
commitd3d004dd3507f841745956a035fff68936378f9c (patch)
tree139fa79a102d11dbab9828d2649c119245b196b1 /coreutils/uudecode.c
parent1340ca8c87d81bf00e604905f25bc04da22e980f (diff)
downloadbusybox-w32-d3d004dd3507f841745956a035fff68936378f9c.tar.gz
busybox-w32-d3d004dd3507f841745956a035fff68936378f9c.tar.bz2
busybox-w32-d3d004dd3507f841745956a035fff68936378f9c.zip
last nail into error_msg() (de)capitalization
Diffstat (limited to 'coreutils/uudecode.c')
-rw-r--r--coreutils/uudecode.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c
index a08d985ac..8b7de74ff 100644
--- a/coreutils/uudecode.c
+++ b/coreutils/uudecode.c
@@ -23,7 +23,7 @@ static int read_stduu(FILE *src_stream, FILE *dst_stream)
23 char *line_ptr = line; 23 char *line_ptr = line;
24 24
25 if (strcmp(line, "end") == 0) { 25 if (strcmp(line, "end") == 0) {
26 return(EXIT_SUCCESS); 26 return EXIT_SUCCESS;
27 } 27 }
28 length = ((*line_ptr - 0x20) & 0x3f)* 4 / 3; 28 length = ((*line_ptr - 0x20) & 0x3f)* 4 / 3;
29 29
@@ -32,13 +32,13 @@ static int read_stduu(FILE *src_stream, FILE *dst_stream)
32 continue; 32 continue;
33 } 33 }
34 if (length > 60) { 34 if (length > 60) {
35 bb_error_msg_and_die("Line too long"); 35 bb_error_msg_and_die("line too long");
36 } 36 }
37 37
38 line_ptr++; 38 line_ptr++;
39 /* Tolerate an overly long line to accomodate a possible exta '`' */ 39 /* Tolerate an overly long line to accomodate a possible exta '`' */
40 if (strlen(line_ptr) < (size_t)length) { 40 if (strlen(line_ptr) < (size_t)length) {
41 bb_error_msg_and_die("Short file"); 41 bb_error_msg_and_die("short file");
42 } 42 }
43 43
44 while (length > 0) { 44 while (length > 0) {
@@ -63,7 +63,7 @@ static int read_stduu(FILE *src_stream, FILE *dst_stream)
63 } 63 }
64 free(line); 64 free(line);
65 } 65 }
66 bb_error_msg_and_die("Short file"); 66 bb_error_msg_and_die("short file");
67} 67}
68 68
69static int read_base64(FILE *src_stream, FILE *dst_stream) 69static int read_base64(FILE *src_stream, FILE *dst_stream)
@@ -84,7 +84,7 @@ static int read_base64(FILE *src_stream, FILE *dst_stream)
84 do { 84 do {
85 ch = fgetc(src_stream); 85 ch = fgetc(src_stream);
86 if (ch == EOF) { 86 if (ch == EOF) {
87 bb_error_msg_and_die("Short file"); 87 bb_error_msg_and_die("short file");
88 } 88 }
89 } while ((table_ptr = strchr(base64_table, ch)) == NULL); 89 } while ((table_ptr = strchr(base64_table, ch)) == NULL);
90 90
@@ -101,7 +101,7 @@ static int read_base64(FILE *src_stream, FILE *dst_stream)
101 else if (*table_ptr == '\n') { 101 else if (*table_ptr == '\n') {
102 /* Check for terminating line */ 102 /* Check for terminating line */
103 if (term_count == 5) { 103 if (term_count == 5) {
104 return(EXIT_SUCCESS); 104 return EXIT_SUCCESS;
105 } 105 }
106 term_count = 1; 106 term_count = 1;
107 continue; 107 continue;
@@ -175,7 +175,7 @@ int uudecode_main(int argc, char **argv)
175 free(line); 175 free(line);
176 ret = decode_fn_ptr(src_stream, dst_stream); 176 ret = decode_fn_ptr(src_stream, dst_stream);
177 fclose_if_not_stdin(src_stream); 177 fclose_if_not_stdin(src_stream);
178 return(ret); 178 return ret;
179 } 179 }
180 bb_error_msg_and_die("No `begin' line"); 180 bb_error_msg_and_die("no 'begin' line");
181} 181}