os: xtrans: drop own VErrorF() and ErrorF()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
258057b085
commit
53de959813
|
@ -371,31 +371,7 @@ static int trans_mkdir (
|
||||||
#ifdef XTRANSDEBUG
|
#ifdef XTRANSDEBUG
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
/*
|
|
||||||
* The X server and the font server both provide ErrorF() & VErrorF(). For
|
|
||||||
* other software that uses xtrans, we provide our own simple
|
|
||||||
* versions.
|
|
||||||
*/
|
|
||||||
# if (defined(XSERV_t) || defined(TRANS_HAS_ERRORF)) && defined(TRANS_SERVER)
|
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
# else
|
|
||||||
static inline void _X_ATTRIBUTE_PRINTF(1, 0)
|
|
||||||
VErrorF(const char *f, va_list args)
|
|
||||||
{
|
|
||||||
vfprintf(stderr, f, args);
|
|
||||||
fflush(stderr);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void _X_ATTRIBUTE_PRINTF(1, 2)
|
|
||||||
ErrorF(const char *f, ...)
|
|
||||||
{
|
|
||||||
va_list args;
|
|
||||||
|
|
||||||
va_start(args, f);
|
|
||||||
VErrorF(f, args);
|
|
||||||
va_end(args);
|
|
||||||
}
|
|
||||||
# endif /* xserver */
|
|
||||||
#endif /* XTRANSDEBUG */
|
#endif /* XTRANSDEBUG */
|
||||||
|
|
||||||
static inline void _X_ATTRIBUTE_PRINTF(2, 3)
|
static inline void _X_ATTRIBUTE_PRINTF(2, 3)
|
||||||
|
|
Loading…
Reference in New Issue