debug_decl and debug_decl_vars now require a semicolon at the end.
This commit is contained in:
@@ -136,7 +136,7 @@ register_hook_internal(struct sudo_hook_list *head,
|
||||
int (*hook_fn)(), void *closure)
|
||||
{
|
||||
struct sudo_hook_entry *hook;
|
||||
debug_decl(register_hook_internal, SUDO_DEBUG_HOOKS)
|
||||
debug_decl(register_hook_internal, SUDO_DEBUG_HOOKS);
|
||||
|
||||
if ((hook = calloc(1, sizeof(*hook))) == NULL) {
|
||||
sudo_debug_printf(SUDO_DEBUG_ERROR|SUDO_DEBUG_LINENO,
|
||||
@@ -155,7 +155,7 @@ int
|
||||
register_hook(struct sudo_hook *hook)
|
||||
{
|
||||
int ret;
|
||||
debug_decl(register_hook, SUDO_DEBUG_HOOKS)
|
||||
debug_decl(register_hook, SUDO_DEBUG_HOOKS);
|
||||
|
||||
if (SUDO_API_VERSION_GET_MAJOR(hook->hook_version) != SUDO_HOOK_VERSION_MAJOR) {
|
||||
/* Major versions must match. */
|
||||
@@ -196,7 +196,7 @@ deregister_hook_internal(struct sudo_hook_list *head,
|
||||
int (*hook_fn)(), void *closure)
|
||||
{
|
||||
struct sudo_hook_entry *hook, *prev = NULL;
|
||||
debug_decl(deregister_hook_internal, SUDO_DEBUG_HOOKS)
|
||||
debug_decl(deregister_hook_internal, SUDO_DEBUG_HOOKS);
|
||||
|
||||
SLIST_FOREACH(hook, head, entries) {
|
||||
if (hook->u.generic_fn == hook_fn && hook->closure == closure) {
|
||||
@@ -219,7 +219,7 @@ int
|
||||
deregister_hook(struct sudo_hook *hook)
|
||||
{
|
||||
int ret = 0;
|
||||
debug_decl(deregister_hook, SUDO_DEBUG_HOOKS)
|
||||
debug_decl(deregister_hook, SUDO_DEBUG_HOOKS);
|
||||
|
||||
if (SUDO_API_VERSION_GET_MAJOR(hook->hook_version) != SUDO_HOOK_VERSION_MAJOR) {
|
||||
/* Major versions must match. */
|
||||
|
Reference in New Issue
Block a user