Unverified Commit b4c9fc14 by Thomas Parrott Committed by Stéphane Graber

macro: Adds UINT_TO_PTR and PTR_TO_USHORT helpers

parent 9d81b99a
...@@ -433,6 +433,9 @@ enum { ...@@ -433,6 +433,9 @@ enum {
#define PTR_TO_UINT64(p) ((uint64_t)((intptr_t)(p))) #define PTR_TO_UINT64(p) ((uint64_t)((intptr_t)(p)))
#define UINT_TO_PTR(u) ((void *) ((uintptr_t) (u)))
#define PTR_TO_USHORT(p) ((unsigned short)((uintptr_t)(p)))
#define LXC_INVALID_UID ((uid_t)-1) #define LXC_INVALID_UID ((uid_t)-1)
#define LXC_INVALID_GID ((gid_t)-1) #define LXC_INVALID_GID ((gid_t)-1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment