diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-11-17 00:00:32 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-11-17 00:52:10 +0100 |
commit | 4a0b58c4a30ecaa61202f845ed86f75b36370cd0 (patch) | |
tree | 1e08b9d596dfb8b4fe3af50315ecf37a7046bb47 /src/remount-fs | |
parent | 357bc17975e3a60a64c46f56b5330747c67705b2 (diff) |
tree-wide: use right cast macros for UIDs, GIDs and PIDs
Diffstat (limited to 'src/remount-fs')
-rw-r--r-- | src/remount-fs/remount-fs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remount-fs/remount-fs.c b/src/remount-fs/remount-fs.c index b155f991bb..912a42654e 100644 --- a/src/remount-fs/remount-fs.c +++ b/src/remount-fs/remount-fs.c @@ -121,7 +121,7 @@ int main(int argc, char *argv[]) { } - k = hashmap_put(pids, UINT_TO_PTR(pid), s); + k = hashmap_put(pids, PID_TO_PTR(pid), s); if (k < 0) { log_error_errno(k, "Failed to add PID to set: %m"); ret = EXIT_FAILURE; @@ -143,7 +143,7 @@ int main(int argc, char *argv[]) { break; } - s = hashmap_remove(pids, UINT_TO_PTR(si.si_pid)); + s = hashmap_remove(pids, PID_TO_PTR(si.si_pid)); if (s) { if (!is_clean_exit(si.si_code, si.si_status, NULL)) { if (si.si_code == CLD_EXITED) |