From f0ed376eda5d5c25d270e5100a881fb2d801bee6 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 26 Oct 2006 23:21:47 +0000 Subject: remove bb_printf and the like --- coreutils/uuencode.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'coreutils/uuencode.c') diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c index 58538365e..e8f8d541c 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); } -- cgit v1.2.3-55-g6feb