summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common.c4
-rw-r--r--common.h8
-rw-r--r--test/tmpf.h2
3 files changed, 10 insertions, 4 deletions
diff --git a/common.c b/common.c
index c9d5d85..b562cc9 100644
--- a/common.c
+++ b/common.c
@@ -26,6 +26,10 @@
#include "common.h"
+void (*mbox_vlog)(int p, const char *fmt, va_list args);
+
+enum verbose verbosity;
+
void mbox_log_console(int p, const char *fmt, va_list args)
{
struct timespec time;
diff --git a/common.h b/common.h
index 581cd0c..83ead0c 100644
--- a/common.h
+++ b/common.h
@@ -25,11 +25,13 @@
#define PREFIX ""
#endif
-enum {
+enum verbose {
MBOX_LOG_NONE = 0,
MBOX_LOG_INFO = 1,
MBOX_LOG_DEBUG = 2
-} verbosity;
+};
+
+extern enum verbose verbosity;
/* Error Messages */
#define MSG_ERR(f_, ...) mbox_log(LOG_ERR, f_, ##__VA_ARGS__)
@@ -42,7 +44,7 @@ enum {
mbox_log(LOG_DEBUG, f_, ##__VA_ARGS__); \
} } while(0)
-void (*mbox_vlog)(int p, const char *fmt, va_list args);
+extern void (*mbox_vlog)(int p, const char *fmt, va_list args);
void mbox_log_console(int p, const char *fmt, va_list args);
diff --git a/test/tmpf.h b/test/tmpf.h
index 61db73d..ce47191 100644
--- a/test/tmpf.h
+++ b/test/tmpf.h
@@ -27,7 +27,7 @@ struct tmpf {
char path[PATH_MAX];
};
-int tmpf_init(struct tmpf *tmpf, const char *template);
+int tmpf_init(struct tmpf *tmpf, const char *template_str);
void tmpf_destroy(struct tmpf *tmpf);
OpenPOWER on IntegriCloud