debug_decl and debug_decl_vars now require a semicolon at the end.

This commit is contained in:
Todd C. Miller
2019-12-22 08:48:16 -07:00
parent 5dcc28180e
commit 486ee2b71f
140 changed files with 1038 additions and 1038 deletions

View File

@@ -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. */