diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-01-09 16:25:47 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-01-09 18:35:36 +0100 |
commit | 8cb4ab0058e51f1fba93683d145ef95f97c2fa86 (patch) | |
tree | 022bbd937efd224d8de1e2c5db66331a6149ed74 /src/sysusers/sysusers.c | |
parent | 309a29dfd24f4175de334ca1593e3fe2436ab082 (diff) |
logind: unify how we cast between uid_t and pointers for hashmap keys
Diffstat (limited to 'src/sysusers/sysusers.c')
-rw-r--r-- | src/sysusers/sysusers.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c index 5d5f5ea794..f25ece0674 100644 --- a/src/sysusers/sysusers.c +++ b/src/sysusers/sysusers.c @@ -81,12 +81,6 @@ static uid_t search_uid = UID_INVALID; static UidRange *uid_range = NULL; static unsigned n_uid_range = 0; -#define UID_TO_PTR(u) (ULONG_TO_PTR(u+1)) -#define PTR_TO_UID(u) ((uid_t) (PTR_TO_ULONG(u)-1)) - -#define GID_TO_PTR(g) (ULONG_TO_PTR(g+1)) -#define PTR_TO_GID(g) ((gid_t) (PTR_TO_ULONG(g)-1)) - #define fix_root(x) (arg_root ? strappenda(arg_root, x) : x) static int load_user_database(void) { |