mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-20 14:33:47 -07:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user