summaryrefslogtreecommitdiffstats
path: root/src/basic/macro.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-10-14 05:47:58 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-10-14 05:54:55 +0200
commit4081756a63eb1cc37117f8be6c0b0c4b62a5640e (patch)
treee4c35322fec199edaf280b0af6385d9d73d72857 /src/basic/macro.h
parentpo: revert some recent translation changes (#17237) (diff)
downloadsystemd-4081756a63eb1cc37117f8be6c0b0c4b62a5640e.tar.xz
systemd-4081756a63eb1cc37117f8be6c0b0c4b62a5640e.zip
sd-dhcp-client: make sd_dhcp_client_set_request_option() not return -EEXIST
Fixes #16964.
Diffstat (limited to 'src/basic/macro.h')
-rw-r--r--src/basic/macro.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/basic/macro.h b/src/basic/macro.h
index d3a5348901..e0fe990bef 100644
--- a/src/basic/macro.h
+++ b/src/basic/macro.h
@@ -444,6 +444,9 @@ static inline int __coverity_check_and_return__(int condition) {
#define PTR_TO_ULONG(p) ((unsigned long) ((uintptr_t) (p)))
#define ULONG_TO_PTR(u) ((void *) ((uintptr_t) (u)))
+#define PTR_TO_UINT8(p) ((uint8_t) ((uintptr_t) (p)))
+#define UINT8_TO_PTR(u) ((void *) ((uintptr_t) (u)))
+
#define PTR_TO_INT32(p) ((int32_t) ((intptr_t) (p)))
#define INT32_TO_PTR(u) ((void *) ((intptr_t) (u)))
#define PTR_TO_UINT32(p) ((uint32_t) ((uintptr_t) (p)))