Skip to content

hsts: Remove single-use single-line function - #13604

Closed
danielgustafsson wants to merge 1 commit into
curl:masterfrom
danielgustafsson:dg-hsts-factory
Closed

hsts: Remove single-use single-line function#13604
danielgustafsson wants to merge 1 commit into
curl:masterfrom
danielgustafsson:dg-hsts-factory

Conversation

@danielgustafsson

Copy link
Copy Markdown
Member

The hsts_entry() function contains of a single line and is only used in a single place in the code, so move the allocation into hsts_create instead to improve code readability. C code usually don't use the factory abstraction for object creation, and this small example wasn't following our usual code style.

The hsts_entry() function contains of a single line and is only
used in a single place in the code, so move the allocation into
hsts_create instead to improve code readability. C code usually
don't use the factory abstraction for object creation, and this
small example wasn't following our usual code style.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants