Skip to content

Commit

Permalink
rename free() to free_func() in struct key_fntable
Browse files Browse the repository at this point in the history
see cisco#109

Signed-off-by: Hans Zandbelt <[email protected]>
  • Loading branch information
zandbelt committed Apr 5, 2022
1 parent c8098a8 commit cca0a2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/include/jwk_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
// key-specific function table
typedef struct _key_fntable_int
{
void (*free)(cjose_jwk_t *);
void (*free_func)(cjose_jwk_t *);
bool (*public_json)(const cjose_jwk_t *, json_t *, cjose_err *err);
bool (*private_json)(const cjose_jwk_t *, json_t *, cjose_err *err);
} key_fntable;
Expand Down
4 changes: 2 additions & 2 deletions src/jwk.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ bool cjose_jwk_release(cjose_jwk_t *jwk)
jwk->kid = NULL;

// assumes freefunc is set
assert(NULL != jwk->fns->free);
jwk->fns->free(jwk);
assert(NULL != jwk->fns->free_func);
jwk->fns->free_func(jwk);
jwk = NULL;
}

Expand Down

0 comments on commit cca0a2d

Please sign in to comment.