summaryrefslogtreecommitdiff
path: root/msg.h
diff options
context:
space:
mode:
authorAntti-Juhani Kaijanaho <ajk@debian.org>2006-01-28 21:55:00 +0100
committerAntti-Juhani Kaijanaho <ajk@debian.org>2006-01-28 21:55:00 +0100
commit7e9c9d1de493eab760c8a2269a79f1a3330f8790 (patch)
tree7b7ca9ad8795515450afcf275b0deae68bbca2d9 /msg.h
parent09b08d086dc36a2575ed26210e6f39f71c7a446f (diff)
downloaddctrl-tools-7e9c9d1de493eab760c8a2269a79f1a3330f8790.tar.gz
Import 2.5
Diffstat (limited to 'msg.h')
-rw-r--r--msg.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/msg.h b/msg.h
index be285eb..a46a856 100644
--- a/msg.h
+++ b/msg.h
@@ -35,23 +35,14 @@ void fail(void) { exit(2); }
#define L_INFORMATIONAL 1
#define L_DEBUG 0
-#define PROGNAME_MAXLEN 64
-
#if !defined(NDEBUG) && !defined(TEST_NODEBUG) && defined(ENABLE_L_DEBUG)
# define INCLUDE_DEBUG_MSGS
#endif
-#ifdef MSG_C__
-int loglevel = L_IMPORTANT;
-char progname [PROGNAME_MAXLEN];
-#endif
-
inline static int
do_msg(int severity)
{
-#ifndef MSG_C__
extern int loglevel;
-#endif
#if defined(TEST_NODEBUG)
if (severity == L_DEBUG) {
@@ -66,18 +57,14 @@ do_msg(int severity)
inline static char const *
get_progname(void)
{
-#ifndef MSG_C__
- extern const char progname [PROGNAME_MAXLEN];
-#endif
+ extern const char progname [];
return progname;
}
static inline
void record_error(void)
{
-#ifndef MSG_C__
extern bool errors;
-#endif
errors = 1;
}
@@ -160,11 +147,8 @@ msg_set_progname (const char * pn);
static inline
bool errors_reported(void)
{
-#ifndef MSG_C__
extern bool errors;
-#endif
return errors;
}
-
#endif /* MSG_H__ */