From a931445a0df6259bfe4fe8c2a4cbd35d45982339 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Tue, 23 Oct 2012 11:43:35 +0300 Subject: [PATCH] absolute: fix how modifications are handled We want to let the modification hooks handle all the modifications. Move the register call later in the check_list.h file so that the modification hooks unset thing and we reset them as needed. Signed-off-by: Dan Carpenter --- check_list.h | 2 +- smatch_absolute.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/check_list.h b/check_list.h index b3afb52d..3a1c738a 100644 --- a/check_list.h +++ b/check_list.h @@ -4,8 +4,8 @@ #endif CK(register_smatch_extra) /* smatch_extra always has to be first */ -CK(register_absolute) CK(register_modification_hooks) +CK(register_absolute) CK(register_definition_db_callbacks) CK(register_project) diff --git a/smatch_absolute.c b/smatch_absolute.c index 9c31fce7..8030ffba 100644 --- a/smatch_absolute.c +++ b/smatch_absolute.c @@ -197,5 +197,5 @@ void register_absolute(int id) void register_absolute_late(int id) { - add_indirect_modification_hook(absolute_id, reset_state); + add_modification_hook(absolute_id, reset_state); } -- 2.11.4.GIT