Skip to content

docs/examples/*hiperfifo.c: (nit) fix calloc arguments to match up with the function prototype#7678

Closed
git-bruh wants to merge 1 commit intocurl:masterfrom
git-bruh:master
Closed

docs/examples/*hiperfifo.c: (nit) fix calloc arguments to match up with the function prototype#7678
git-bruh wants to merge 1 commit intocurl:masterfrom
git-bruh:master

Conversation

@git-bruh
Copy link
Contributor

@git-bruh git-bruh commented Sep 6, 2021

The nelem and elsize fields were flipped in these examples, doesn't cause issues practically since it's just multiplying both the values but it's inconsistent with the argument names in the function prototype for calloc.

Copy link
Member

@bagder bagder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nit-picky, but accurate! 😁

@bagder bagder closed this in 033d15a Sep 6, 2021
@bagder
Copy link
Member

bagder commented Sep 6, 2021

Thanks!

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