Fix inconsistent parameter names between definition/declaration pairs

For the sake of consistency, function definitions and their
corresponding declarations should use the same names for parameters.
I've enabled this check in static analysis to prevent this issue from
occurring again in the future.
This commit is contained in:
Kevin Svetlitski
2023-07-06 16:27:56 -07:00
committed by Qi Wang
parent 5711dc31d8
commit 1d9e9c2ed6
7 changed files with 25 additions and 16 deletions

View File

@@ -146,7 +146,7 @@ struct hook_ralloc_args_s {
*/
bool hook_boot(void);
void *hook_install(tsdn_t *tsdn, hooks_t *hooks);
void *hook_install(tsdn_t *tsdn, hooks_t *to_install);
/* Uninstalls the hook with the handle previously returned from hook_install. */
void hook_remove(tsdn_t *tsdn, void *opaque);