summaryrefslogtreecommitdiff
path: root/src/notify
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-03-03 13:07:10 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-03-05 07:10:13 +0900
commitf5fbe71d956957ca7ceb6777aed05a416fc83a43 (patch)
tree67358d417604030867a979f216bbb79939a37844 /src/notify
parentef1e0b9a461c4baa12bdda47579c2c017209c3be (diff)
downloadsystemd-f5fbe71d956957ca7ceb6777aed05a416fc83a43.tar.gz
tree-wide: use UINT64_MAX or friends
Diffstat (limited to 'src/notify')
-rw-r--r--src/notify/notify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/notify/notify.c b/src/notify/notify.c
index 1309d8f4e0..40cbc296bd 100644
--- a/src/notify/notify.c
+++ b/src/notify/notify.c
@@ -241,11 +241,11 @@ static int run(int argc, char* argv[]) {
ucred data, and sd_pid_notify() uses the real UID for filling in ucred. */
if (arg_gid != GID_INVALID &&
- setregid(arg_gid, (gid_t) -1) < 0)
+ setregid(arg_gid, GID_INVALID) < 0)
return log_error_errno(errno, "Failed to change GID: %m");
if (arg_uid != UID_INVALID &&
- setreuid(arg_uid, (uid_t) -1) < 0)
+ setreuid(arg_uid, UID_INVALID) < 0)
return log_error_errno(errno, "Failed to change UID: %m");
if (arg_pid > 0)