aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/xwayland/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xwayland/Server.cpp')
-rw-r--r--src/xwayland/Server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xwayland/Server.cpp b/src/xwayland/Server.cpp
index 9d6b3bcb..b1f02cd3 100644
--- a/src/xwayland/Server.cpp
+++ b/src/xwayland/Server.cpp
@@ -51,13 +51,13 @@ static bool setCloseOnExec(int fd, bool cloexec) {
return true;
}
-void cleanUpSocket(int fd, const char* path) {
+static void cleanUpSocket(int fd, const char* path) {
close(fd);
if (path[0])
unlink(path);
}
-inline void closeSocketSafely(int& fd) {
+static inline void closeSocketSafely(int& fd) {
if (fd >= 0)
close(fd);
}