From 0cec9c6443aeb6021b3f9ececf1a067bf37af107 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 25 Jul 2025 19:56:45 +0200 Subject: [PATCH] os: xtrans: fix trans_mkdir() prototype Functions used acrossed various .c files cannot be static. Signed-off-by: Enrico Weigelt, metux IT consult --- os/Xtransint.h | 5 +---- os/Xtransutil.c | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/os/Xtransint.h b/os/Xtransint.h index 16778b2e4..d89063e7f 100644 --- a/os/Xtransint.h +++ b/os/Xtransint.h @@ -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 diff --git a/os/Xtransutil.c b/os/Xtransutil.c index 8d7849f60..aa58e5031 100644 --- a/os/Xtransutil.c +++ b/os/Xtransutil.c @@ -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;