Make hook_version and hook_type unsigned.

This commit is contained in:
Todd C. Miller
2015-09-02 08:00:27 -06:00
parent bfb1cead60
commit af47293800
4 changed files with 8 additions and 8 deletions

View File

@@ -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;
};

View 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;
};

View 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;
};

View 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;
};