action: Mark parameter of lttng_action_get_type as const
[lttng-tools.git] / src / common / actions / action.c
index 11b3c5501dace3d515f5f4d3759a0e2acf61bc93..86628542bc50186c32b20a0bc026530a235672d6 100644 (file)
@@ -38,18 +38,11 @@ const char *lttng_action_type_string(enum lttng_action_type action_type)
        }
 }
 
-enum lttng_action_type lttng_action_get_type(struct lttng_action *action)
+enum lttng_action_type lttng_action_get_type(const struct lttng_action *action)
 {
        return action ? action->type : LTTNG_ACTION_TYPE_UNKNOWN;
 }
 
-LTTNG_HIDDEN
-enum lttng_action_type lttng_action_get_type_const(
-               const struct lttng_action *action)
-{
-       return action->type;
-}
-
 LTTNG_HIDDEN
 void lttng_action_init(
                struct lttng_action *action,
This page took 0.035369 seconds and 4 git commands to generate.