Remove const into kvz_init_constraint.

This commit is contained in:
mercat 2019-09-11 15:57:15 +03:00
parent 2bca507abe
commit 21c07638ed
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@
* \param state encoder state * \param state encoder state
* \return the pointer of constraint_t structure * \return the pointer of constraint_t structure
*/ */
void * kvz_init_constraint(encoder_state_t* state, encoder_control_t * const encoder) { void * kvz_init_constraint(encoder_state_t* state, encoder_control_t * encoder) {
constraint_t* constr = NULL; constraint_t* constr = NULL;
// Allocate the constraint_t strucutre // Allocate the constraint_t strucutre
constr = MALLOC(constraint_t, 1); constr = MALLOC(constraint_t, 1);

View file

@ -34,7 +34,7 @@ typedef struct {
} constraint_t; } constraint_t;
void * kvz_init_constraint(encoder_state_t* state, encoder_control_t * const encoder); void * kvz_init_constraint(encoder_state_t* state, encoder_control_t * encoder);
void kvz_constraint_free(encoder_state_t* state); void kvz_constraint_free(encoder_state_t* state);
#endif #endif