diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-04-05 07:26:26 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-04-05 07:26:26 +0200 |
commit | 1cc6c93a9569a9f2664d0d26cd0e50408307c430 (patch) | |
tree | 57e115a1beb9b097f731da79c3192015ff35cc94 /src/machine/machined.c | |
parent | network: fix typo in log message (diff) | |
download | systemd-1cc6c93a9569a9f2664d0d26cd0e50408307c430.tar.xz systemd-1cc6c93a9569a9f2664d0d26cd0e50408307c430.zip |
tree-wide: use TAKE_PTR() and TAKE_FD() macros
Diffstat (limited to 'src/machine/machined.c')
-rw-r--r-- | src/machine/machined.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/machine/machined.c b/src/machine/machined.c index 9fb67882e1..54f8d836a2 100644 --- a/src/machine/machined.c +++ b/src/machine/machined.c @@ -124,9 +124,8 @@ static int manager_add_host_machine(Manager *m) { t->leader = 1; t->id = mid; - t->root_directory = rd; - t->unit = unit; - rd = unit = NULL; + t->root_directory = TAKE_PTR(rd); + t->unit = TAKE_PTR(unit); dual_timestamp_from_boottime_or_monotonic(&t->timestamp, 0); |