diff options
| author | Ikalco <73481042+ikalco@users.noreply.github.com> | 2024-12-18 19:56:01 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-19 02:56:01 +0100 |
| commit | 5b714f05f87831e3e930af04649f853d5efb9902 (patch) | |
| tree | 6a84cc910bcd00daaa94df98c6c13c6fbd6dfdbc /src/xwayland/Server.cpp | |
| parent | 7c43eed2c1e6c56ab56d1bded4a6701b5598b1c3 (diff) | |
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
Diffstat (limited to 'src/xwayland/Server.cpp')
| -rw-r--r-- | src/xwayland/Server.cpp | 4 |
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); } |
