diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-10-24 04:06:18 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-10-24 04:06:18 +0200 |
commit | ec447c7f01acb0e3abd9daa52a1b616be3f39484 (patch) | |
tree | b4e2c9fb96c0358caa6d5507d5d2c56cde4a51a2 | |
parent | e9dc354df86e9a3026de406520f6cd03a3519495 (diff) | |
download | busybox-w32-ec447c7f01acb0e3abd9daa52a1b616be3f39484.tar.gz busybox-w32-ec447c7f01acb0e3abd9daa52a1b616be3f39484.tar.bz2 busybox-w32-ec447c7f01acb0e3abd9daa52a1b616be3f39484.zip |
libbb.h: remove unused defines
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | include/libbb.h | 7 | ||||
-rw-r--r-- | libbb/vdprintf.c | 4 |
2 files changed, 2 insertions, 9 deletions
diff --git a/include/libbb.h b/include/libbb.h index f0f54ef82..d248781c3 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -254,13 +254,6 @@ typedef unsigned long uoff_t; | |||
254 | #undef SKIP | 254 | #undef SKIP |
255 | #define SKIP ((int) 2) | 255 | #define SKIP ((int) 2) |
256 | 256 | ||
257 | /* for mtab.c */ | ||
258 | #define MTAB_GETMOUNTPT '1' | ||
259 | #define MTAB_GETDEVICE '2' | ||
260 | |||
261 | #define BUF_SIZE 8192 | ||
262 | #define EXPAND_ALLOC 1024 | ||
263 | |||
264 | /* Macros for min/max. */ | 257 | /* Macros for min/max. */ |
265 | #ifndef MIN | 258 | #ifndef MIN |
266 | #define MIN(a,b) (((a)<(b))?(a):(b)) | 259 | #define MIN(a,b) (((a)<(b))?(a):(b)) |
diff --git a/libbb/vdprintf.c b/libbb/vdprintf.c index feeb403a0..05426873e 100644 --- a/libbb/vdprintf.c +++ b/libbb/vdprintf.c | |||
@@ -12,10 +12,10 @@ | |||
12 | #if defined(__GLIBC__) && __GLIBC__ < 2 | 12 | #if defined(__GLIBC__) && __GLIBC__ < 2 |
13 | int FAST_FUNC vdprintf(int d, const char *format, va_list ap) | 13 | int FAST_FUNC vdprintf(int d, const char *format, va_list ap) |
14 | { | 14 | { |
15 | char buf[BUF_SIZE]; | 15 | char buf[8 * 1024]; |
16 | int len; | 16 | int len; |
17 | 17 | ||
18 | len = vsnprintf(buf, BUF_SIZE, format, ap); | 18 | len = vsnprintf(buf, sizeof(buf), format, ap); |
19 | return write(d, buf, len); | 19 | return write(d, buf, len); |
20 | } | 20 | } |
21 | #endif | 21 | #endif |