mirror of
https://github.com/sheumann/hush.git
synced 2025-01-10 16:29:44 +00:00
libbb.h: remove unused defines
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
e9dc354df8
commit
ec447c7f01
@ -254,13 +254,6 @@ typedef unsigned long uoff_t;
|
|||||||
#undef SKIP
|
#undef SKIP
|
||||||
#define SKIP ((int) 2)
|
#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. */
|
/* Macros for min/max. */
|
||||||
#ifndef MIN
|
#ifndef MIN
|
||||||
#define MIN(a,b) (((a)<(b))?(a):(b))
|
#define MIN(a,b) (((a)<(b))?(a):(b))
|
||||||
|
@ -12,10 +12,10 @@
|
|||||||
#if defined(__GLIBC__) && __GLIBC__ < 2
|
#if defined(__GLIBC__) && __GLIBC__ < 2
|
||||||
int FAST_FUNC vdprintf(int d, const char *format, va_list ap)
|
int FAST_FUNC vdprintf(int d, const char *format, va_list ap)
|
||||||
{
|
{
|
||||||
char buf[BUF_SIZE];
|
char buf[8 * 1024];
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
len = vsnprintf(buf, BUF_SIZE, format, ap);
|
len = vsnprintf(buf, sizeof(buf), format, ap);
|
||||||
return write(d, buf, len);
|
return write(d, buf, len);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user