aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-10-24 04:06:18 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-10-24 04:06:18 +0200
commitec447c7f01acb0e3abd9daa52a1b616be3f39484 (patch)
treeb4e2c9fb96c0358caa6d5507d5d2c56cde4a51a2
parente9dc354df86e9a3026de406520f6cd03a3519495 (diff)
downloadbusybox-ec447c7f01acb0e3abd9daa52a1b616be3f39484.tar.gz
libbb.h: remove unused defines
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--include/libbb.h7
-rw-r--r--libbb/vdprintf.c4
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;
#undef SKIP
#define SKIP ((int) 2)
-/* for mtab.c */
-#define MTAB_GETMOUNTPT '1'
-#define MTAB_GETDEVICE '2'
-
-#define BUF_SIZE 8192
-#define EXPAND_ALLOC 1024
-
/* Macros for min/max. */
#ifndef MIN
#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 @@
#if defined(__GLIBC__) && __GLIBC__ < 2
int FAST_FUNC vdprintf(int d, const char *format, va_list ap)
{
- char buf[BUF_SIZE];
+ char buf[8 * 1024];
int len;
- len = vsnprintf(buf, BUF_SIZE, format, ap);
+ len = vsnprintf(buf, sizeof(buf), format, ap);
return write(d, buf, len);
}
#endif