summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ifstated
diff options
context:
space:
mode:
authorbenno <benno@openbsd.org>2016-09-02 16:21:33 +0000
committerbenno <benno@openbsd.org>2016-09-02 16:21:33 +0000
commit4c9059558badcb14c5e754030ecd460c9ed06ae0 (patch)
tree94103326322c2052142b8cd6f49cc7e95145db39 /usr.sbin/ifstated
parentwork on making log.c similar in all daemons: (diff)
downloadwireguard-openbsd-4c9059558badcb14c5e754030ecd460c9ed06ae0.tar.xz
wireguard-openbsd-4c9059558badcb14c5e754030ecd460c9ed06ae0.zip
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@
Diffstat (limited to 'usr.sbin/ifstated')
-rw-r--r--usr.sbin/ifstated/log.c30
1 files changed, 14 insertions, 16 deletions
diff --git a/usr.sbin/ifstated/log.c b/usr.sbin/ifstated/log.c
index 6c49b715b73..eb4a1bae5d8 100644
--- a/usr.sbin/ifstated/log.c
+++ b/usr.sbin/ifstated/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.2 2016/08/27 01:26:22 guenther Exp $ */
+/* $OpenBSD: log.c,v 1.3 2016/09/02 16:21:33 benno Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -11,9 +11,9 @@
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
- * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
- * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <errno.h>
@@ -21,22 +21,21 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
#include <syslog.h>
+#include <time.h>
-void log_init(int);
-void log_warn(const char *, ...);
-void log_warnx(const char *, ...);
-void log_info(const char *, ...);
-void log_debug(const char *, ...);
-__dead void fatal(const char *);
-__dead void fatalx(const char *);
+void log_init(int);
+void log_warn(const char *, ...);
+void log_warnx(const char *, ...);
+void log_info(const char *, ...);
+void log_debug(const char *, ...);
+__dead void fatal(const char *);
+__dead void fatalx(const char *);
+void vlog(int, const char *, va_list);
+void logit(int, const char *, ...);
int debug;
-void vlog(int, const char *, va_list);
-void logit(int, const char *, ...);
-
void
log_init(int n_debug)
{
@@ -79,7 +78,6 @@ vlog(int pri, const char *fmt, va_list ap)
vsyslog(pri, fmt, ap);
}
-
void
log_warn(const char *emsg, ...)
{