Remove 'inline' attributes from static functions in .c files (#11426)
Let the compiler perform inlining (see #11397).
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
1c8e48f506
commit
a1e92eee3e
@@ -118,7 +118,7 @@ DEFINE_BUS_APPEND_PARSE_PTR("u", uint32_t, mode_t, parse_mode);
|
||||
DEFINE_BUS_APPEND_PARSE_PTR("u", uint32_t, unsigned, safe_atou);
|
||||
DEFINE_BUS_APPEND_PARSE_PTR("x", int64_t, int64_t, safe_atoi64);
|
||||
|
||||
static inline int bus_append_string(sd_bus_message *m, const char *field, const char *eq) {
|
||||
static int bus_append_string(sd_bus_message *m, const char *field, const char *eq) {
|
||||
int r;
|
||||
|
||||
r = sd_bus_message_append(m, "(sv)", field, "s", eq);
|
||||
|
||||
@@ -68,7 +68,7 @@ typedef struct {
|
||||
size_t n_rules;
|
||||
} Presets;
|
||||
|
||||
static inline bool unit_file_install_info_has_rules(const UnitFileInstallInfo *i) {
|
||||
static bool unit_file_install_info_has_rules(const UnitFileInstallInfo *i) {
|
||||
assert(i);
|
||||
|
||||
return !strv_isempty(i->aliases) ||
|
||||
@@ -76,13 +76,13 @@ static inline bool unit_file_install_info_has_rules(const UnitFileInstallInfo *i
|
||||
!strv_isempty(i->required_by);
|
||||
}
|
||||
|
||||
static inline bool unit_file_install_info_has_also(const UnitFileInstallInfo *i) {
|
||||
static bool unit_file_install_info_has_also(const UnitFileInstallInfo *i) {
|
||||
assert(i);
|
||||
|
||||
return !strv_isempty(i->also);
|
||||
}
|
||||
|
||||
static inline void presets_freep(Presets *p) {
|
||||
static void presets_freep(Presets *p) {
|
||||
size_t i;
|
||||
|
||||
if (!p)
|
||||
|
||||
Reference in New Issue
Block a user