diff options
author | Denis Vlasenko | 2006-10-26 23:21:47 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-10-26 23:21:47 +0000 |
commit | f0ed376eda5d5c25d270e5100a881fb2d801bee6 (patch) | |
tree | 79166b700c497fbe798b6031e5bbff97e0933573 /coreutils/uuencode.c | |
parent | 670a6626cabc1498f32b35f959591f8621d8447e (diff) | |
download | busybox-f0ed376eda5d5c25d270e5100a881fb2d801bee6.zip busybox-f0ed376eda5d5c25d270e5100a881fb2d801bee6.tar.gz |
remove bb_printf and the like
Diffstat (limited to 'coreutils/uuencode.c')
-rw-r--r-- | coreutils/uuencode.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c index 5853836..e8f8d54 100644 --- a/coreutils/uuencode.c +++ b/coreutils/uuencode.c @@ -47,12 +47,12 @@ int uuencode_main(int argc, char **argv) bb_show_usage(); } - bb_printf("begin%s %o %s", tbl == bb_uuenc_tbl_std ? "" : "-base64", mode, argv[argc - 1]); + printf("begin%s %o %s", tbl == bb_uuenc_tbl_std ? "" : "-base64", mode, argv[argc - 1]); while ((size = fread(src_buf, 1, src_buf_size, src_stream)) > 0) { if (size != src_buf_size) { /* write_size is always 60 until the last line */ - write_size=(4 * ((size + 2) / 3)); + write_size = (4 * ((size + 2) / 3)); /* pad with 0s so we can just encode extra bits */ memset(&src_buf[size], 0, src_buf_size - size); } @@ -67,9 +67,9 @@ int uuencode_main(int argc, char **argv) bb_perror_msg_and_die(bb_msg_write_error); } } - bb_printf(tbl == bb_uuenc_tbl_std ? "\n`\nend\n" : "\n====\n"); + printf(tbl == bb_uuenc_tbl_std ? "\n`\nend\n" : "\n====\n"); - xferror(src_stream, "source"); /* TODO - Fix this! */ + die_if_ferror(src_stream, "source"); /* TODO - Fix this! */ - bb_fflush_stdout_and_exit(EXIT_SUCCESS); + fflush_stdout_and_exit(EXIT_SUCCESS); } |