mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
Fix minor coding-style violations
...based on https://github.com/johanmalm/checkpatch.pl
This commit is contained in:
parent
439cf4f848
commit
d424514e24
14 changed files with 29 additions and 28 deletions
|
|
@ -12,17 +12,19 @@ void
|
|||
increase_nofile_limit(void)
|
||||
{
|
||||
if (getrlimit(RLIMIT_NOFILE, &original_nofile_rlimit) != 0) {
|
||||
wlr_log_errno(WLR_ERROR, "Failed to bump max open files limit: getrlimit(NOFILE) failed");
|
||||
wlr_log_errno(WLR_ERROR,
|
||||
"Failed to bump max open files limit: getrlimit(NOFILE) failed");
|
||||
return;
|
||||
}
|
||||
|
||||
struct rlimit new_rlimit = original_nofile_rlimit;
|
||||
new_rlimit.rlim_cur = new_rlimit.rlim_max;
|
||||
if (setrlimit(RLIMIT_NOFILE, &new_rlimit) != 0) {
|
||||
wlr_log_errno(WLR_ERROR, "Failed to bump max open files limit: setrlimit(NOFILE) failed");
|
||||
wlr_log_errno(WLR_ERROR,
|
||||
"Failed to bump max open files limit: setrlimit(NOFILE) failed");
|
||||
|
||||
wlr_log(WLR_INFO, "Running with %d max open files",
|
||||
(int)original_nofile_rlimit.rlim_cur);
|
||||
(int)original_nofile_rlimit.rlim_cur);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue