]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Add prototypes for mkstemp replacements.
authorDarren Tucker <dtucker@dtucker.net>
Fri, 10 Mar 2023 03:46:57 +0000 (14:46 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Fri, 10 Mar 2023 03:46:57 +0000 (14:46 +1100)
Should prevent warnings due to our wrapper function.

openbsd-compat/mktemp.c
openbsd-compat/openbsd-compat.h

index 4b13b9834957180ad9620ae2ddb528415232f380..cca956a51f6504d1da08e4e573fb7a5d4ac41ae0 100644 (file)
@@ -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
index cc4cf2055bcff78fec05066c47c93a1a6e18fc19..78faea9629bdc3533acbb87f8843f4b8bf339087 100644 (file)
@@ -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);