summaryrefslogtreecommitdiffstats
path: root/log.c
diff options
context:
space:
mode:
authormarkus@openbsd.org <markus@openbsd.org>2018-07-27 14:03:17 +0200
committerDamien Miller <djm@mindrot.org>2018-07-31 04:20:13 +0200
commit5d14019ba2ff54acbfd20a6b9b96bb860a8c7c31 (patch)
treedfb3f5005c234e3e22c3cd5a2d2dc0adef734691 /log.c
parentupstream: Now that ssh can't be setuid, remove the (diff)
downloadopenssh-5d14019ba2ff54acbfd20a6b9b96bb860a8c7c31.tar.xz
openssh-5d14019ba2ff54acbfd20a6b9b96bb860a8c7c31.zip
upstream: avoid expensive channel_open_message() calls; ok djm@
OpenBSD-Commit-ID: aea3b5512ad681cd8710367d743e8a753d4425d9
Diffstat (limited to 'log.c')
-rw-r--r--log.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/log.c b/log.c
index 99450dd12..d9c2d136c 100644
--- a/log.c
+++ b/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.50 2017/05/17 01:24:17 djm Exp $ */
+/* $OpenBSD: log.c,v 1.51 2018/07/27 12:03:17 markus Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -105,6 +105,12 @@ static struct {
{ NULL, SYSLOG_LEVEL_NOT_SET }
};
+LogLevel
+log_level_get(void)
+{
+ return log_level;
+}
+
SyslogFacility
log_facility_number(char *name)
{