From 5b714f05f87831e3e930af04649f853d5efb9902 Mon Sep 17 00:00:00 2001 From: Ikalco <73481042+ikalco@users.noreply.github.com> Date: Wed, 18 Dec 2024 19:56:01 -0600 Subject: internal: Make static analysis more happy (#8767) * make functions used in 1 file static * fix invalid substr param -1 * give default initializer to borderGradier * move RASSERT from printf to std::print --- src/xwayland/Server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/xwayland/Server.cpp') 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); } -- cgit v1.2.3