libbb.h: remove unused defines
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 24 Oct 2011 02:06:18 +0000 (04:06 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 24 Oct 2011 02:06:18 +0000 (04:06 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/libbb.h
libbb/vdprintf.c

index f0f54ef820909ded96c9a89d87c6b2b7e448216c..d248781c3790052bffd66818151cd2724f82e89c 100644 (file)
@@ -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))
index feeb403a08c9c01ab12e744172406b44ce8fb32d..05426873e552b43039e937fe665bfcf9df6e6013 100644 (file)
 #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