macro: introduce POINTER_MAX as define for (void*) -1
authorLennart Poettering <lennart@poettering.net>
Wed, 21 Oct 2020 12:31:54 +0000 (14:31 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 21 Oct 2020 23:33:20 +0000 (08:33 +0900)
commit66032ef489e19292b06773e5f44531a7b44c23c5
tree399152dcb7ece3c8da5cd6d38ccfdaeae123bf73
parent6c5496c492a8d74e54d22bf8824160cab1e63c10
macro: introduce POINTER_MAX as define for (void*) -1

Just add a safer, prettier way to write (void*) -1, that doesn't rely on
two's complement, but uses the correct underlying C constructs.
src/basic/macro.h
src/basic/path-util.c
src/basic/path-util.h
src/basic/strv.h
src/home/pam_systemd_home.c
src/shared/json.c