Eliminate the deprecated mc_abort() function and MC_ABORT macro.
This commit is contained in:
15
debug.c
15
debug.c
@@ -41,21 +41,6 @@ extern void mc_set_syslog(int syslog)
|
||||
_syslog = syslog;
|
||||
}
|
||||
|
||||
void mc_abort(const char *msg, ...)
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, msg);
|
||||
#if HAVE_VSYSLOG
|
||||
if(_syslog) {
|
||||
vsyslog(LOG_ERR, msg, ap);
|
||||
} else
|
||||
#endif
|
||||
vprintf(msg, ap);
|
||||
va_end(ap);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
void mc_debug(const char *msg, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
8
debug.h
8
debug.h
@@ -24,10 +24,6 @@ extern int mc_get_debug(void);
|
||||
|
||||
extern void mc_set_syslog(int syslog);
|
||||
|
||||
/**
|
||||
* @deprecated Use mc_error(), and return an appropriate error.
|
||||
*/
|
||||
extern void mc_abort(const char *msg, ...);
|
||||
extern void mc_debug(const char *msg, ...);
|
||||
extern void mc_error(const char *msg, ...);
|
||||
extern void mc_info(const char *msg, ...);
|
||||
@@ -52,10 +48,6 @@ extern void mc_info(const char *msg, ...);
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @deprecated Use MC_ERROR(), and return an appropriate error.
|
||||
*/
|
||||
#define MC_ABORT(x, ...) mc_abort(x, ##__VA_ARGS__)
|
||||
#define MC_ERROR(x, ...) mc_error(x, ##__VA_ARGS__)
|
||||
|
||||
#ifdef MC_MAINTAINER_MODE
|
||||
|
||||
Reference in New Issue
Block a user