]> granicus.if.org Git - sudo/commitdiff
Make hook_version and hook_type unsigned.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 2 Sep 2015 14:00:27 +0000 (08:00 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 2 Sep 2015 14:00:27 +0000 (08:00 -0600)
doc/sudo_plugin.cat
doc/sudo_plugin.man.in
doc/sudo_plugin.mdoc.in
include/sudo_plugin.h

index 08923bda58b3e69d5fbbf5a75e8f481de48328f7..b8795efbca29987df23e3a75d1a5546c35459776 100644 (file)
@@ -1126,8 +1126,8 @@ D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
      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;
      };
index dc65bd4f39783fe29242161a6e06d3cdbb6964cc..8987d7efbc5657a46bccb6aa86386daa13f9088c 100644 (file)
@@ -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;
 };
index 951bdfb626d4828c424ba40762245558b55ec552..34549cc8fa25ce1a5d68ba42a38751af96184997 100644 (file)
@@ -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;
 };
index aa5258c1c2afa171a17cf0f229f421d3c212f44d..d2c65fcf1c41a264bc0c2e9109c4bb168de9c6f2 100644 (file)
@@ -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;
 };