[openssh-commits] [openssh] 01/02: openpty: mark inputs const
git+noreply at mindrot.org
git+noreply at mindrot.org
Tue Sep 15 18:24:16 AEST 2026
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit b99b84822cce120af6faf958d258b6f4b8dfc2c2
Author: Mike Frysinger <vapier at chromium.org>
AuthorDate: Sun Jul 12 20:48:13 2026 +0545
openpty: mark inputs const
This matches BSD & GNU implementations.
---
openbsd-compat/bsd-openpty.c | 4 ++--
openbsd-compat/openbsd-compat.h | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/openbsd-compat/bsd-openpty.c b/openbsd-compat/bsd-openpty.c
index 2f1286258..45b858855 100644
--- a/openbsd-compat/bsd-openpty.c
+++ b/openbsd-compat/bsd-openpty.c
@@ -126,8 +126,8 @@ openpty_streams(int *amaster, int *aslave)
#endif
int
-openpty(int *amaster, int *aslave, char *name, struct termios *termp,
- struct winsize *winp)
+openpty(int *amaster, int *aslave, char *name, const struct termios *termp,
+ const struct winsize *winp)
{
#if defined(HAVE__GETPTY)
/*
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h
index c74043adc..930cf1fa2 100644
--- a/openbsd-compat/openbsd-compat.h
+++ b/openbsd-compat/openbsd-compat.h
@@ -252,7 +252,8 @@ int asprintf(char **, const char *, ...);
#ifndef HAVE_OPENPTY
# include <sys/ioctl.h> /* for struct winsize */
-int openpty(int *, int *, char *, struct termios *, struct winsize *);
+int openpty(int *, int *, char *, const struct termios *,
+ const struct winsize *);
#endif /* HAVE_OPENPTY */
#ifndef HAVE_SNPRINTF
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list