From c5cafb4331ed4b805833430891f108a29f7b415c Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 16 Mar 2016 10:53:43 -0600 Subject: [PATCH] hook_version and hook_type are unsigned so use 0, not -1 in the final (empty) entry. Quiets a warning on Solaris Studio 12.2. --- plugins/sudoers/policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sudoers/policy.c b/plugins/sudoers/policy.c index 05ac22a07..481f21aab 100644 --- a/plugins/sudoers/policy.c +++ b/plugins/sudoers/policy.c @@ -819,7 +819,7 @@ static struct sudo_hook sudoers_hooks[] = { { SUDO_HOOK_VERSION, SUDO_HOOK_UNSETENV, sudoers_hook_unsetenv, NULL }, { SUDO_HOOK_VERSION, SUDO_HOOK_GETENV, sudoers_hook_getenv, NULL }, { SUDO_HOOK_VERSION, SUDO_HOOK_PUTENV, sudoers_hook_putenv, NULL }, - { -1, -1, NULL, NULL } + { 0, 0, NULL, NULL } }; /* -- 2.40.0