diff options
author | Denis Vlasenko | 2006-10-27 09:02:31 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-10-27 09:02:31 +0000 |
commit | d3d004dd3507f841745956a035fff68936378f9c (patch) | |
tree | 139fa79a102d11dbab9828d2649c119245b196b1 /coreutils/uudecode.c | |
parent | 1340ca8c87d81bf00e604905f25bc04da22e980f (diff) | |
download | busybox-d3d004dd3507f841745956a035fff68936378f9c.zip busybox-d3d004dd3507f841745956a035fff68936378f9c.tar.gz |
last nail into error_msg() (de)capitalization
Diffstat (limited to 'coreutils/uudecode.c')
-rw-r--r-- | coreutils/uudecode.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c index a08d985..8b7de74 100644 --- a/coreutils/uudecode.c +++ b/coreutils/uudecode.c @@ -23,7 +23,7 @@ static int read_stduu(FILE *src_stream, FILE *dst_stream) char *line_ptr = line; if (strcmp(line, "end") == 0) { - return(EXIT_SUCCESS); + return EXIT_SUCCESS; } length = ((*line_ptr - 0x20) & 0x3f)* 4 / 3; @@ -32,13 +32,13 @@ static int read_stduu(FILE *src_stream, FILE *dst_stream) continue; } if (length > 60) { - bb_error_msg_and_die("Line too long"); + bb_error_msg_and_die("line too long"); } line_ptr++; /* Tolerate an overly long line to accomodate a possible exta '`' */ if (strlen(line_ptr) < (size_t)length) { - bb_error_msg_and_die("Short file"); + bb_error_msg_and_die("short file"); } while (length > 0) { @@ -63,7 +63,7 @@ static int read_stduu(FILE *src_stream, FILE *dst_stream) } free(line); } - bb_error_msg_and_die("Short file"); + bb_error_msg_and_die("short file"); } static int read_base64(FILE *src_stream, FILE *dst_stream) @@ -84,7 +84,7 @@ static int read_base64(FILE *src_stream, FILE *dst_stream) do { ch = fgetc(src_stream); if (ch == EOF) { - bb_error_msg_and_die("Short file"); + bb_error_msg_and_die("short file"); } } while ((table_ptr = strchr(base64_table, ch)) == NULL); @@ -101,7 +101,7 @@ static int read_base64(FILE *src_stream, FILE *dst_stream) else if (*table_ptr == '\n') { /* Check for terminating line */ if (term_count == 5) { - return(EXIT_SUCCESS); + return EXIT_SUCCESS; } term_count = 1; continue; @@ -175,7 +175,7 @@ int uudecode_main(int argc, char **argv) free(line); ret = decode_fn_ptr(src_stream, dst_stream); fclose_if_not_stdin(src_stream); - return(ret); + return ret; } - bb_error_msg_and_die("No `begin' line"); + bb_error_msg_and_die("no 'begin' line"); } |