[openssh-commits] [openssh] 03/03: Add prototypes for mkstemp replacements.
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Mar 10 14:47:51 AEDT 2023
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit bf4dae0ad192c3e2f03f7223834b00d88ace3d3e
Author: Darren Tucker <dtucker at dtucker.net>
Date: Fri Mar 10 14:46:57 2023 +1100
Add prototypes for mkstemp replacements.
Should prevent warnings due to our wrapper function.
---
openbsd-compat/mktemp.c | 1 +
openbsd-compat/openbsd-compat.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/openbsd-compat/mktemp.c b/openbsd-compat/mktemp.c
index 4b13b983..cca956a5 100644
--- a/openbsd-compat/mktemp.c
+++ b/openbsd-compat/mktemp.c
@@ -37,6 +37,7 @@
#ifdef mkstemp
#undef mkstemp
#endif
+int mkstemp(char *);
/*
* From glibc man page: 'In glibc versions 2.06 and earlier, the file is
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h
index cc4cf205..78faea96 100644
--- a/openbsd-compat/openbsd-compat.h
+++ b/openbsd-compat/openbsd-compat.h
@@ -142,6 +142,7 @@ char *mkdtemp(char *path);
#endif
#define mkstemp(x) _ssh_mkstemp(x)
+int _ssh_mkstemp(char *);
#ifndef HAVE_DAEMON
int daemon(int nochdir, int noclose);
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list