Move sudo_printf extern to sudo_util.h

This commit is contained in:
Todd C. Miller
2014-08-31 18:46:26 -06:00
parent a07ce849f7
commit 8bc688188f
3 changed files with 4 additions and 3 deletions

View File

@@ -112,9 +112,6 @@
} while (0)
#endif /* SUDO_ERROR_WRAP */
/* XXX - move to sudo_util.h */
extern int (*sudo_printf)(int msg_type, const char *fmt, ...);
typedef void (*sudo_fatal_callback_t)(void);
__dso_public int sudo_fatal_callback_deregister_v1(sudo_fatal_callback_t func);

View File

@@ -195,6 +195,9 @@ __dso_public id_t sudo_strtoid_v1(const char *str, const char *sep, char **endp,
__dso_public int sudo_strtomode_v1(const char *cp, const char **errstr);
#define sudo_strtomode(_a, _b) sudo_strtomode_v1((_a), (_b))
/* sudo_printf.c */
extern int (*sudo_printf)(int msg_type, const char *fmt, ...);
/* term.c */
__dso_public bool sudo_term_cbreak_v1(int fd);
#define sudo_term_cbreak(_a) sudo_term_cbreak_v1((_a))

View File

@@ -35,6 +35,7 @@
#include "sudo_alloc.h"
#include "sudo_fatal.h"
#include "sudo_queue.h"
#include "sudo_util.h"
#include "sudo_plugin.h"
struct sudo_fatal_callback {