os: xtrans: fix trans_mkdir() prototype

Functions used acrossed various .c files cannot be static.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-07-25 19:56:45 +02:00
parent 4905546f2e
commit 0cec9c6443
2 changed files with 2 additions and 6 deletions

View File

@@ -297,10 +297,7 @@ static int _XSERVTransWriteV(
#endif /* WIN32 */
static int trans_mkdir (
const char *, /* path */
int /* mode */
);
int trans_mkdir (const char *path, int mode);
#ifdef __clang__
#pragma clang diagnostic pop

View File

@@ -250,8 +250,7 @@ int _XSERVTransWSAStartup (void)
* it's not save if the directory has non-root ownership or the sticky
* bit cannot be set and fail.
*/
static int
trans_mkdir(const char *path, int mode)
int trans_mkdir(const char *path, int mode)
{
struct stat buf;