mirror of
https://github.com/systemd/systemd.git
synced 2025-02-03 17:47:28 +03:00
Merge pull request #9438 from yuwata/lgtm-fixes-2
small fixes suggested by LGTM
This commit is contained in:
commit
7f818901a2
@ -890,11 +890,8 @@ static int list_dependencies_one(sd_bus *bus, const char *name, unsigned int lev
|
||||
STRV_FOREACH(c, deps) {
|
||||
times = hashmap_get(unit_times_hashmap, *c);
|
||||
if (times_in_range(times, boot) &&
|
||||
(times->activated >= service_longest
|
||||
|| service_longest == 0)) {
|
||||
times->activated >= service_longest)
|
||||
service_longest = times->activated;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (service_longest == 0)
|
||||
|
@ -63,7 +63,7 @@ int introspect_write_child_nodes(struct introspect *i, Set *s, const char *prefi
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void introspect_write_flags(struct introspect *i, int type, int flags) {
|
||||
static void introspect_write_flags(struct introspect *i, int type, uint64_t flags) {
|
||||
if (flags & SD_BUS_VTABLE_DEPRECATED)
|
||||
fputs(" <annotation name=\"org.freedesktop.DBus.Deprecated\" value=\"true\"/>\n", i->f);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user