diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-10-26 23:21:47 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-10-26 23:21:47 +0000 |
commit | 6dc3a21627db11fa0f374afe29a6bbf4f89c8b64 (patch) | |
tree | 79166b700c497fbe798b6031e5bbff97e0933573 /libbb | |
parent | 076d919b597733c0adf653d0ad10073be4adec7f (diff) | |
download | busybox-w32-6dc3a21627db11fa0f374afe29a6bbf4f89c8b64.tar.gz busybox-w32-6dc3a21627db11fa0f374afe29a6bbf4f89c8b64.tar.bz2 busybox-w32-6dc3a21627db11fa0f374afe29a6bbf4f89c8b64.zip |
remove bb_printf and the like
git-svn-id: svn://busybox.net/trunk/busybox@16446 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/Kbuild | 1 | ||||
-rw-r--r-- | libbb/fflush_stdout_and_exit.c | 6 | ||||
-rw-r--r-- | libbb/getopt32.c | 2 | ||||
-rw-r--r-- | libbb/xfuncs.c | 6 |
4 files changed, 6 insertions, 9 deletions
diff --git a/libbb/Kbuild b/libbb/Kbuild index 3b16f5c45..0dd8c2be4 100644 --- a/libbb/Kbuild +++ b/libbb/Kbuild | |||
@@ -54,7 +54,6 @@ lib-$(CONFIG_DEVFSD) += xregcomp.o | |||
54 | 54 | ||
55 | lib-y += messages.o | 55 | lib-y += messages.o |
56 | lib-y += xfuncs.o | 56 | lib-y += xfuncs.o |
57 | lib-y += printf.o | ||
58 | lib-y += xatol.o | 57 | lib-y += xatol.o |
59 | lib-y += safe_strtol.o | 58 | lib-y += safe_strtol.o |
60 | lib-y += bb_pwd.o | 59 | lib-y += bb_pwd.o |
diff --git a/libbb/fflush_stdout_and_exit.c b/libbb/fflush_stdout_and_exit.c index 6df8dde13..456ce9513 100644 --- a/libbb/fflush_stdout_and_exit.c +++ b/libbb/fflush_stdout_and_exit.c | |||
@@ -11,11 +11,9 @@ | |||
11 | * in an error state. | 11 | * in an error state. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <stdio.h> | 14 | #include "libbb.h" |
15 | #include <stdlib.h> | ||
16 | #include <libbb.h> | ||
17 | 15 | ||
18 | void bb_fflush_stdout_and_exit(int retval) | 16 | void fflush_stdout_and_exit(int retval) |
19 | { | 17 | { |
20 | if (fflush(stdout)) { | 18 | if (fflush(stdout)) { |
21 | retval = xfunc_error_retval; | 19 | retval = xfunc_error_retval; |
diff --git a/libbb/getopt32.c b/libbb/getopt32.c index 967729a1b..f442933a3 100644 --- a/libbb/getopt32.c +++ b/libbb/getopt32.c | |||
@@ -143,7 +143,7 @@ const char *opt_complementary | |||
143 | while (my_b) { dosomething_with(my_b->data); my_b = my_b->link; } | 143 | while (my_b) { dosomething_with(my_b->data); my_b = my_b->link; } |
144 | if (my_b) // but llist is stored if -b is specified | 144 | if (my_b) // but llist is stored if -b is specified |
145 | free_llist(my_b); | 145 | free_llist(my_b); |
146 | if (verbose_level) bb_printf("verbose level is %d\n", verbose_level); | 146 | if (verbose_level) printf("verbose level is %d\n", verbose_level); |
147 | 147 | ||
148 | Special characters: | 148 | Special characters: |
149 | 149 | ||
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index 0a6d90de5..c5e18c312 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c | |||
@@ -130,7 +130,7 @@ off_t xlseek(int fd, off_t offset, int whence) | |||
130 | } | 130 | } |
131 | 131 | ||
132 | // Die with supplied error message if this FILE * has ferror set. | 132 | // Die with supplied error message if this FILE * has ferror set. |
133 | void xferror(FILE *fp, const char *fn) | 133 | void die_if_ferror(FILE *fp, const char *fn) |
134 | { | 134 | { |
135 | if (ferror(fp)) { | 135 | if (ferror(fp)) { |
136 | bb_error_msg_and_die("%s", fn); | 136 | bb_error_msg_and_die("%s", fn); |
@@ -138,9 +138,9 @@ void xferror(FILE *fp, const char *fn) | |||
138 | } | 138 | } |
139 | 139 | ||
140 | // Die with an error message if stdout has ferror set. | 140 | // Die with an error message if stdout has ferror set. |
141 | void xferror_stdout(void) | 141 | void die_if_ferror_stdout(void) |
142 | { | 142 | { |
143 | xferror(stdout, bb_msg_standard_output); | 143 | die_if_ferror(stdout, bb_msg_standard_output); |
144 | } | 144 | } |
145 | 145 | ||
146 | // Die with an error message if we have trouble flushing stdout. | 146 | // Die with an error message if we have trouble flushing stdout. |