summaryrefslogtreecommitdiff
path: root/usr.sbin/ospf6d/log.h
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2016-09-02 14:06:36 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2016-09-02 14:06:36 +0000
commita33a8ebe6426da1aabeb10ef00b5444de59a761d (patch)
treecbe33cb5b025c68b34687af13c1ee052aaa167df /usr.sbin/ospf6d/log.h
parentc2f5e07cc83e58cf9fe7c3672068a17d42b88bc1 (diff)
work on making log.c similar in all daemons:
move daemon-local functions into new logmsg.c, and reduce the (mostly whitespace) differences so that log.c's can be diffed easily. ok claudio@, feedback from henning@, deraadt@, reyk@
Diffstat (limited to 'usr.sbin/ospf6d/log.h')
-rw-r--r--usr.sbin/ospf6d/log.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/usr.sbin/ospf6d/log.h b/usr.sbin/ospf6d/log.h
index e51d6e8b2eb..580fb608df4 100644
--- a/usr.sbin/ospf6d/log.h
+++ b/usr.sbin/ospf6d/log.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.h,v 1.9 2016/06/06 15:57:44 benno Exp $ */
+/* $OpenBSD: log.h,v 1.10 2016/09/02 14:06:35 benno Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -16,10 +16,13 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifndef _LOG_H_
-#define _LOG_H_
+#ifndef LOG_H
+#define LOG_H
#include <stdarg.h>
+#include <sys/cdefs.h>
+
+extern const char *log_procname;
void log_init(int);
void log_verbose(int);
@@ -40,9 +43,4 @@ void fatal(const char *) __dead
void fatalx(const char *) __dead
__attribute__((__format__ (printf, 1, 0)));
-const char *log_in6addr(const struct in6_addr *);
-const char *log_in6addr_scope(const struct in6_addr *, unsigned int);
-const char *log_rtr_id(u_int32_t);
-const char *log_sockaddr(void *);
-
-#endif /* _LOG_H_ */
+#endif /* LOG_H */