No need to have version macros for hooks, callbacks and the sudoers
group plugin. We can just use the main sudo API macros. The sudoers group plugin macros are preserved for source compatibility but are not documented.
This commit is contained in:
@@ -812,8 +812,8 @@ sudoers_policy_register_hooks(int version, int (*register_hook)(struct sudo_hook
|
||||
if (register_hook(hook) != 0) {
|
||||
sudo_warn_nodebug(
|
||||
U_("unable to register hook of type %d (version %d.%d)"),
|
||||
hook->hook_type,SUDO_HOOK_VERSION_GET_MAJOR(hook->hook_version),
|
||||
SUDO_HOOK_VERSION_GET_MINOR(hook->hook_version));
|
||||
hook->hook_type, SUDO_API_VERSION_GET_MAJOR(hook->hook_version),
|
||||
SUDO_API_VERSION_GET_MINOR(hook->hook_version));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user