Committer: Tim Just <tim.just@xxxxxxxxxxxxxx> Date: Mon Mar 08 10:34:52 2010 +0100 Revision: 3635 Revision-id: tim.just@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Branch nick: tiny Log: Removed member type from struct handle_function and struct maint_function. The type variable was not used. Modified: M hipd/modularization.c === modified file 'hipd/modularization.c' --- hipd/modularization.c 2010-03-05 16:28:18 +0000 +++ hipd/modularization.c 2010-03-08 09:34:52 +0000 @@ -12,23 +12,16 @@ #include "lib/core/state.h" #include "lib/modularization/modularization.h" -enum function_types { - HANDLE_FUNCTION, - MAINTENANCE_FUNCTION -}; - struct handle_function { uint32_t priority; int (*func_ptr)(const uint32_t packet_type, const uint32_t ha_state, struct hip_packet_context *ctx); - enum function_types type; }; struct maint_function { uint32_t priority; int (*func_ptr)(void); - enum function_types type; }; /** @@ -78,7 +71,6 @@ -1, "Error on allocating memory for a handle function entry.\n"); - new_entry->type = HANDLE_FUNCTION; new_entry->priority = priority; new_entry->func_ptr = handle_function; @@ -209,7 +201,6 @@ -1, "Error on allocating memory for a handle function entry.\n"); - new_entry->type = MAINTENANCE_FUNCTION; new_entry->priority = priority; new_entry->func_ptr = maint_function;