mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
main: add 'const' on two function arguments
This commit is contained in:
@@ -1218,7 +1218,7 @@ static void bump_file_max_and_nr_open(void) {
|
||||
#endif
|
||||
}
|
||||
|
||||
static int bump_rlimit_nofile(struct rlimit *saved_rlimit) {
|
||||
static int bump_rlimit_nofile(const struct rlimit *saved_rlimit) {
|
||||
struct rlimit new_rlimit;
|
||||
int r, nr;
|
||||
|
||||
@@ -1247,7 +1247,7 @@ static int bump_rlimit_nofile(struct rlimit *saved_rlimit) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int bump_rlimit_memlock(struct rlimit *saved_rlimit) {
|
||||
static int bump_rlimit_memlock(const struct rlimit *saved_rlimit) {
|
||||
struct rlimit new_rlimit;
|
||||
uint64_t mm;
|
||||
int r;
|
||||
|
||||
Reference in New Issue
Block a user