diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-10-14 05:47:58 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-10-14 05:54:55 +0200 |
commit | 4081756a63eb1cc37117f8be6c0b0c4b62a5640e (patch) | |
tree | e4c35322fec199edaf280b0af6385d9d73d72857 /src/basic/macro.h | |
parent | po: revert some recent translation changes (#17237) (diff) | |
download | systemd-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.h | 3 |
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))) |