From: Todd C. Miller Date: Wed, 2 Sep 2015 14:00:27 +0000 (-0600) Subject: Make hook_version and hook_type unsigned. X-Git-Tag: SUDO_1_8_15^2~77 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af4729380005c63fa9988f75427c85a6854fb1f9;p=sudo Make hook_version and hook_type unsigned. --- diff --git a/doc/sudo_plugin.cat b/doc/sudo_plugin.cat index 08923bda5..b8795efbc 100644 --- a/doc/sudo_plugin.cat +++ b/doc/sudo_plugin.cat @@ -1126,8 +1126,8 @@ DDEESSCCRRIIPPTTIIOONN typedef int (*sudo_hook_fn_t)(); struct sudo_hook { - int hook_version; - int hook_type; + unsigned int hook_version; + unsigned int hook_type; sudo_hook_fn_t hook_fn; void *closure; }; diff --git a/doc/sudo_plugin.man.in b/doc/sudo_plugin.man.in index dc65bd4f3..8987d7efb 100644 --- a/doc/sudo_plugin.man.in +++ b/doc/sudo_plugin.man.in @@ -2003,8 +2003,8 @@ are described by the following structure: typedef int (*sudo_hook_fn_t)(); struct sudo_hook { - int hook_version; - int hook_type; + unsigned int hook_version; + unsigned int hook_type; sudo_hook_fn_t hook_fn; void *closure; }; diff --git a/doc/sudo_plugin.mdoc.in b/doc/sudo_plugin.mdoc.in index 951bdfb62..34549cc8f 100644 --- a/doc/sudo_plugin.mdoc.in +++ b/doc/sudo_plugin.mdoc.in @@ -1756,8 +1756,8 @@ are described by the following structure: typedef int (*sudo_hook_fn_t)(); struct sudo_hook { - int hook_version; - int hook_type; + unsigned int hook_version; + unsigned int hook_type; sudo_hook_fn_t hook_fn; void *closure; }; diff --git a/include/sudo_plugin.h b/include/sudo_plugin.h index aa5258c1c..d2c65fcf1 100644 --- a/include/sudo_plugin.h +++ b/include/sudo_plugin.h @@ -78,8 +78,8 @@ typedef int (*sudo_hook_fn_unsetenv_t)(const char *name, void *closure); /* Hook structure definition. */ struct sudo_hook { - int hook_version; - int hook_type; + unsigned int hook_version; + unsigned int hook_type; sudo_hook_fn_t hook_fn; void *closure; };