diff options
author | Sebastian Benoit <benno@cvs.openbsd.org> | 2016-09-02 14:06:36 +0000 |
---|---|---|
committer | Sebastian Benoit <benno@cvs.openbsd.org> | 2016-09-02 14:06:36 +0000 |
commit | a33a8ebe6426da1aabeb10ef00b5444de59a761d (patch) | |
tree | cbe33cb5b025c68b34687af13c1ee052aaa167df /usr.sbin/ospf6d/log.h | |
parent | c2f5e07cc83e58cf9fe7c3672068a17d42b88bc1 (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.h | 16 |
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 */ |