Skip to content

Commit

Permalink
chore: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhuyan committed Sep 4, 2023
1 parent 43b2fbe commit a745039
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion c_src/quicer_ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ destroy_l_ctx(QuicerListenerCTX *l_ctx)
// @note, Destroy config asap as it holds rundown
// ref count in registration
destroy_config_ctx(l_ctx->config_resource);

if (l_ctx->r_ctx)
{
enif_release_resource(l_ctx->r_ctx);
Expand Down
2 changes: 1 addition & 1 deletion c_src/quicer_listener.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ listen2(ErlNifEnv *env, __unused_parm__ int argc, const ERL_NIF_TERM argv[])
free_certificate(&CredConfig);
return OK_TUPLE_2(listenHandle);

exit: //errors..
exit: // errors..
free_certificate(&CredConfig);
destroy_l_ctx(l_ctx);
return ret;
Expand Down
2 changes: 1 addition & 1 deletion c_src/quicer_tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ build_trustedstore(const char *cacertfile, X509_STORE **trusted_store)
/*
* Free certfile/certfileprotected of QUIC_CREDENTIAL_CONFIG
*
*/
*/
void
free_certificate(QUIC_CREDENTIAL_CONFIG *cc)
{
Expand Down
3 changes: 1 addition & 2 deletions c_src/quicer_tls.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,5 @@ parse_cacertfile_option(ErlNifEnv *env,
BOOLEAN
build_trustedstore(const char *cacertfile, X509_STORE **trusted_store);

void
free_certificate(QUIC_CREDENTIAL_CONFIG *cc);
void free_certificate(QUIC_CREDENTIAL_CONFIG *cc);
#endif // QUICER_TLS_H_

0 comments on commit a745039

Please sign in to comment.