aboutsummaryrefslogtreecommitdiff
path: root/coreutils/uuencode.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-26 23:21:47 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-26 23:21:47 +0000
commitf0ed376eda5d5c25d270e5100a881fb2d801bee6 (patch)
tree79166b700c497fbe798b6031e5bbff97e0933573 /coreutils/uuencode.c
parent670a6626cabc1498f32b35f959591f8621d8447e (diff)
downloadbusybox-w32-f0ed376eda5d5c25d270e5100a881fb2d801bee6.tar.gz
busybox-w32-f0ed376eda5d5c25d270e5100a881fb2d801bee6.tar.bz2
busybox-w32-f0ed376eda5d5c25d270e5100a881fb2d801bee6.zip
remove bb_printf and the like
Diffstat (limited to 'coreutils/uuencode.c')
-rw-r--r--coreutils/uuencode.c10
1 files changed, 5 insertions, 5 deletions
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)
47 bb_show_usage(); 47 bb_show_usage();
48 } 48 }
49 49
50 bb_printf("begin%s %o %s", tbl == bb_uuenc_tbl_std ? "" : "-base64", mode, argv[argc - 1]); 50 printf("begin%s %o %s", tbl == bb_uuenc_tbl_std ? "" : "-base64", mode, argv[argc - 1]);
51 51
52 while ((size = fread(src_buf, 1, src_buf_size, src_stream)) > 0) { 52 while ((size = fread(src_buf, 1, src_buf_size, src_stream)) > 0) {
53 if (size != src_buf_size) { 53 if (size != src_buf_size) {
54 /* write_size is always 60 until the last line */ 54 /* write_size is always 60 until the last line */
55 write_size=(4 * ((size + 2) / 3)); 55 write_size = (4 * ((size + 2) / 3));
56 /* pad with 0s so we can just encode extra bits */ 56 /* pad with 0s so we can just encode extra bits */
57 memset(&src_buf[size], 0, src_buf_size - size); 57 memset(&src_buf[size], 0, src_buf_size - size);
58 } 58 }
@@ -67,9 +67,9 @@ int uuencode_main(int argc, char **argv)
67 bb_perror_msg_and_die(bb_msg_write_error); 67 bb_perror_msg_and_die(bb_msg_write_error);
68 } 68 }
69 } 69 }
70 bb_printf(tbl == bb_uuenc_tbl_std ? "\n`\nend\n" : "\n====\n"); 70 printf(tbl == bb_uuenc_tbl_std ? "\n`\nend\n" : "\n====\n");
71 71
72 xferror(src_stream, "source"); /* TODO - Fix this! */ 72 die_if_ferror(src_stream, "source"); /* TODO - Fix this! */
73 73
74 bb_fflush_stdout_and_exit(EXIT_SUCCESS); 74 fflush_stdout_and_exit(EXIT_SUCCESS);
75} 75}