cleanup: bugprone argument issues (#37346)

Follow up from https://github.com/systemd/systemd/pull/37281
This commit is contained in:
Yu Watanabe
2025-05-06 18:56:07 +09:00
committed by GitHub
9 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ int bus_test_polkit(
_cleanup_(sd_bus_message_unrefp) sd_bus_message *request = NULL, *reply = NULL;
int authorized = false, challenge = false;
r = bus_message_new_polkit_auth_call_for_bus(call, action, details, /* interactive = */ false, &request);
r = bus_message_new_polkit_auth_call_for_bus(call, action, details, /* flags = */ 0, &request);
if (r < 0)
return r;
+1 -1
View File
@@ -22,7 +22,7 @@ int sethostname_idempotent(const char *s);
int shorten_overlong(const char *s, char **ret);
int read_etc_hostname_stream(FILE *f, bool substitute_wildcards, char **ret);
int read_etc_hostname(const char *path, bool substitue_wildcards, char **ret);
int read_etc_hostname(const char *path, bool substitute_wildcards, char **ret);
void hostname_update_source_hint(const char *hostname, HostnameSource source);
int hostname_setup(bool really);
+5 -5
View File
@@ -49,7 +49,7 @@ int mount_verbose_full(
int error_log_level,
const char *what,
const char *where,
const char *type,
const char *fstype,
unsigned long flags,
const char *options,
bool follow_symlink);
@@ -58,20 +58,20 @@ static inline int mount_follow_verbose(
int error_log_level,
const char *what,
const char *where,
const char *type,
const char *fstype,
unsigned long flags,
const char *options) {
return mount_verbose_full(error_log_level, what, where, type, flags, options, true);
return mount_verbose_full(error_log_level, what, where, fstype, flags, options, true);
}
static inline int mount_nofollow_verbose(
int error_log_level,
const char *what,
const char *where,
const char *type,
const char *fstype,
unsigned long flags,
const char *options) {
return mount_verbose_full(error_log_level, what, where, type, flags, options, false);
return mount_verbose_full(error_log_level, what, where, fstype, flags, options, false);
}
int umount_verbose(