[openssh-commits] [openssh] 02/07: upstream: make program name be const
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Dec 4 13:43:55 AEDT 2020
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit ee22db7c5885a1d90219202c0695bc621aa0409b
Author: djm at openbsd.org <djm at openbsd.org>
Date: Fri Dec 4 02:25:13 2020 +0000
upstream: make program name be const
OpenBSD-Commit-ID: ece25680ec637fdf20502721ccb0276691df5384
---
log.c | 7 ++++---
log.h | 4 ++--
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/log.c b/log.c
index f57e7550..4d786c2c 100644
--- a/log.c
+++ b/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.55 2020/10/18 11:21:59 djm Exp $ */
+/* $OpenBSD: log.c,v 1.56 2020/12/04 02:25:13 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -57,7 +57,7 @@ static LogLevel log_level = SYSLOG_LEVEL_INFO;
static int log_on_stderr = 1;
static int log_stderr_fd = STDERR_FILENO;
static int log_facility = LOG_AUTH;
-static char *argv0;
+static const char *argv0;
static log_handler_fn *log_handler;
static void *log_handler_ctx;
static char **log_verbose;
@@ -191,7 +191,8 @@ log_verbose_reset(void)
*/
void
-log_init(char *av0, LogLevel level, SyslogFacility facility, int on_stderr)
+log_init(const char *av0, LogLevel level, SyslogFacility facility,
+ int on_stderr)
{
#if defined(HAVE_OPENLOG_R) && defined(SYSLOG_DATA_INIT)
struct syslog_data sdata = SYSLOG_DATA_INIT;
diff --git a/log.h b/log.h
index ee81ec56..5ec793ce 100644
--- a/log.h
+++ b/log.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.h,v 1.29 2020/10/18 11:21:59 djm Exp $ */
+/* $OpenBSD: log.h,v 1.30 2020/12/04 02:25:13 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
@@ -52,7 +52,7 @@ typedef enum {
typedef void (log_handler_fn)(const char *, const char *, int, LogLevel,
const char *, void *);
-void log_init(char *, LogLevel, SyslogFacility, int);
+void log_init(const char *, LogLevel, SyslogFacility, int);
LogLevel log_level_get(void);
int log_change_level(LogLevel);
int log_is_on_stderr(void);
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list