1
0
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:
Lennart Poettering 2018-06-27 10:36:50 +02:00 committed by GitHub
commit 7f818901a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -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)

View File

@ -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);