From: Todd C. Miller Date: Wed, 16 Mar 2016 16:53:43 +0000 (-0600) Subject: hook_version and hook_type are unsigned so use 0, not -1 in the X-Git-Tag: SUDO_1_8_16^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c5cafb4331ed4b805833430891f108a29f7b415c;p=sudo 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. --- 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 } }; /*