diff options
author | Daniel Mack <github@zonque.org> | 2015-11-17 09:33:59 +0100 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-11-17 09:33:59 +0100 |
commit | bf7e619b3b2b97ff2a4952ab125c794c0d3bdb5f (patch) | |
tree | 9b94bf28557da6f2d5a78da20c44b5da9b8e8676 /src/machine/machine.c | |
parent | f1f8a5a5e110f485257e8702ad30b9997e529a74 (diff) | |
parent | 6059dab8897ecd24a51a6601499c1bb9002bc54a (diff) |
Merge pull request #1924 from poettering/some-fixes-2
casting fixes, another siphash24 alignment fix, and more
Diffstat (limited to 'src/machine/machine.c')
-rw-r--r-- | src/machine/machine.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/machine/machine.c b/src/machine/machine.c index 282079f228..6b1fae2769 100644 --- a/src/machine/machine.c +++ b/src/machine/machine.c @@ -38,6 +38,7 @@ #include "machine.h" #include "mkdir.h" #include "parse-util.h" +#include "process-util.h" #include "special.h" #include "string-table.h" #include "terminal-util.h" @@ -105,7 +106,7 @@ void machine_free(Machine *m) { m->manager->host_machine = NULL; if (m->leader > 0) - (void) hashmap_remove_value(m->manager->machine_leaders, UINT_TO_PTR(m->leader), m); + (void) hashmap_remove_value(m->manager->machine_leaders, PID_TO_PTR(m->leader), m); sd_bus_message_unref(m->create_message); @@ -401,7 +402,7 @@ int machine_start(Machine *m, sd_bus_message *properties, sd_bus_error *error) { if (m->started) return 0; - r = hashmap_put(m->manager->machine_leaders, UINT_TO_PTR(m->leader), m); + r = hashmap_put(m->manager->machine_leaders, PID_TO_PTR(m->leader), m); if (r < 0) return r; |