mountpoint-util: rename mount_propagation_flags_to_string() and friends as singular
This commit is contained in:
@@ -1599,11 +1599,11 @@ static int parse_personality(const char *s, unsigned long *p) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const char* mount_propagation_flags_to_string_with_check(unsigned long n) {
|
||||
static const char* mount_propagation_flag_to_string_with_check(unsigned long n) {
|
||||
if (!IN_SET(n, 0, MS_SHARED, MS_PRIVATE, MS_SLAVE))
|
||||
return NULL;
|
||||
|
||||
return mount_propagation_flags_to_string(n);
|
||||
return mount_propagation_flag_to_string(n);
|
||||
}
|
||||
|
||||
static BUS_DEFINE_SET_TRANSIENT(nsec, "t", uint64_t, nsec_t, NSEC_FMT);
|
||||
@@ -1624,7 +1624,7 @@ static BUS_DEFINE_SET_TRANSIENT_PARSE_PTR(personality, unsigned long, parse_pers
|
||||
static BUS_DEFINE_SET_TRANSIENT_TO_STRING_ALLOC(secure_bits, "i", int32_t, int, "%" PRIi32, secure_bits_to_string_alloc_with_check);
|
||||
static BUS_DEFINE_SET_TRANSIENT_TO_STRING_ALLOC(capability, "t", uint64_t, uint64_t, "%" PRIu64, capability_set_to_string_alloc);
|
||||
static BUS_DEFINE_SET_TRANSIENT_TO_STRING_ALLOC(namespace_flag, "t", uint64_t, unsigned long, "%" PRIu64, namespace_flags_to_string);
|
||||
static BUS_DEFINE_SET_TRANSIENT_TO_STRING(mount_flags, "t", uint64_t, unsigned long, "%" PRIu64, mount_propagation_flags_to_string_with_check);
|
||||
static BUS_DEFINE_SET_TRANSIENT_TO_STRING(mount_flags, "t", uint64_t, unsigned long, "%" PRIu64, mount_propagation_flag_to_string_with_check);
|
||||
|
||||
int bus_exec_context_set_transient_property(
|
||||
Unit *u,
|
||||
|
||||
Reference in New Issue
Block a user