Make hook_version and hook_type unsigned.
This commit is contained in:
@@ -1126,8 +1126,8 @@ DDEESSCCRRIIPPTTIIOONN
|
|||||||
typedef int (*sudo_hook_fn_t)();
|
typedef int (*sudo_hook_fn_t)();
|
||||||
|
|
||||||
struct sudo_hook {
|
struct sudo_hook {
|
||||||
int hook_version;
|
unsigned int hook_version;
|
||||||
int hook_type;
|
unsigned int hook_type;
|
||||||
sudo_hook_fn_t hook_fn;
|
sudo_hook_fn_t hook_fn;
|
||||||
void *closure;
|
void *closure;
|
||||||
};
|
};
|
||||||
|
@@ -2003,8 +2003,8 @@ are described by the following structure:
|
|||||||
typedef int (*sudo_hook_fn_t)();
|
typedef int (*sudo_hook_fn_t)();
|
||||||
|
|
||||||
struct sudo_hook {
|
struct sudo_hook {
|
||||||
int hook_version;
|
unsigned int hook_version;
|
||||||
int hook_type;
|
unsigned int hook_type;
|
||||||
sudo_hook_fn_t hook_fn;
|
sudo_hook_fn_t hook_fn;
|
||||||
void *closure;
|
void *closure;
|
||||||
};
|
};
|
||||||
|
@@ -1756,8 +1756,8 @@ are described by the following structure:
|
|||||||
typedef int (*sudo_hook_fn_t)();
|
typedef int (*sudo_hook_fn_t)();
|
||||||
|
|
||||||
struct sudo_hook {
|
struct sudo_hook {
|
||||||
int hook_version;
|
unsigned int hook_version;
|
||||||
int hook_type;
|
unsigned int hook_type;
|
||||||
sudo_hook_fn_t hook_fn;
|
sudo_hook_fn_t hook_fn;
|
||||||
void *closure;
|
void *closure;
|
||||||
};
|
};
|
||||||
|
@@ -78,8 +78,8 @@ typedef int (*sudo_hook_fn_unsetenv_t)(const char *name, void *closure);
|
|||||||
|
|
||||||
/* Hook structure definition. */
|
/* Hook structure definition. */
|
||||||
struct sudo_hook {
|
struct sudo_hook {
|
||||||
int hook_version;
|
unsigned int hook_version;
|
||||||
int hook_type;
|
unsigned int hook_type;
|
||||||
sudo_hook_fn_t hook_fn;
|
sudo_hook_fn_t hook_fn;
|
||||||
void *closure;
|
void *closure;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user