static void automount_init(Unit *u) {
Automount *a = AUTOMOUNT(u);
+ assert(a);
assert(u);
assert(u->load_state == UNIT_STUB);
_cleanup_free_ char *s = NULL;
Device *d = DEVICE(u);
+ assert(d);
assert(u);
assert(f);
assert(fds);
Device *d = DEVICE(u);
int r;
+ assert(d);
assert(u);
assert(key);
assert(value);
static void mount_init(Unit *u) {
Mount *m = MOUNT(u);
+ assert(m);
assert(u);
assert(u->load_state == UNIT_STUB);
Mount *m = MOUNT(u);
int r, q = 0;
+ assert(m);
assert(u);
assert(u->load_state == UNIT_STUB);
Mount *m = MOUNT(u);
int r;
+ assert(m);
assert(u);
assert(key);
assert(value);
usec_t t;
int r;
+ assert(m);
+ assert(u);
+
if (!m->timer_event_source)
return 0;
LIST_FOREACH(units_by_type, u, m->units_by_type[UNIT_SWAP]) {
Swap *swap = SWAP(u);
+ assert(swap);
+
swap->is_active = swap->just_activated = false;
}
LIST_FOREACH(units_by_type, u, m->units_by_type[UNIT_SWAP]) {
Swap *swap = SWAP(u);
+ assert(swap);
+
if (!swap->is_active) {
swap_unset_proc_swaps(swap);
usec_t t;
int r;
+ assert(s);
+ assert(u);
+
if (!s->timer_event_source)
return 0;
v = MACSEC(netdev);
+ assert(v);
+
if (v->port > 0) {
r = sd_netlink_message_append_u16(m, IFLA_MACSEC_PORT, v->port);
if (r < 0)
else
continue;
+ assert(m);
+
if (m->mode == NETDEV_MACVLAN_MODE_PASSTHRU)
network->link_local = ADDRESS_FAMILY_NO;
rr = dns_resource_record_new_full(DNS_CLASS_IN, DNS_TYPE_PTR,
"_services._dns-sd._udp.local");
+ if (!rr)
+ return log_oom();
rr->ptr.name = strdup(service_type);
rr->ttl = MDNS_DEFAULT_TTL;