summaryrefslogtreecommitdiff
path: root/src/basic/async.c
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-11-17 09:33:59 +0100
committerDaniel Mack <github@zonque.org>2015-11-17 09:33:59 +0100
commitbf7e619b3b2b97ff2a4952ab125c794c0d3bdb5f (patch)
tree9b94bf28557da6f2d5a78da20c44b5da9b8e8676 /src/basic/async.c
parentf1f8a5a5e110f485257e8702ad30b9997e529a74 (diff)
parent6059dab8897ecd24a51a6601499c1bb9002bc54a (diff)
Merge pull request #1924 from poettering/some-fixes-2
casting fixes, another siphash24 alignment fix, and more
Diffstat (limited to 'src/basic/async.c')
-rw-r--r--src/basic/async.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/async.c b/src/basic/async.c
index c3135f0efe..cfc5d224e1 100644
--- a/src/basic/async.c
+++ b/src/basic/async.c
@@ -68,7 +68,7 @@ int asynchronous_sync(void) {
}
static void *close_thread(void *p) {
- assert_se(close_nointr(PTR_TO_INT(p)) != -EBADF);
+ assert_se(close_nointr(PTR_TO_FD(p)) != -EBADF);
return NULL;
}
@@ -84,7 +84,7 @@ int asynchronous_close(int fd) {
if (fd >= 0) {
PROTECT_ERRNO;
- r = asynchronous_job(close_thread, INT_TO_PTR(fd));
+ r = asynchronous_job(close_thread, FD_TO_PTR(fd));
if (r < 0)
assert_se(close_nointr(fd) != -EBADF);
}