Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the macros from sys/param.h #1970

Merged
merged 3 commits into from
Aug 17, 2023
Merged

Conversation

xiaoxiang781216
Copy link
Contributor

@xiaoxiang781216 xiaoxiang781216 commented Aug 15, 2023

Summary

  • Change all sizeof(arr)/sizeof(arr[0]) to nitems
  • Remove the definition of MIN/MAX

Impact

code refactor only

Testing

ci
Please ignore the coding style issue in the origin source code.

@pkarashchenko pkarashchenko changed the title Use the macros from sys/params.h Use the macros from sys/param.h Aug 16, 2023
use the macro in sys/params.h

Signed-off-by: Xiang Xiao <[email protected]>
@pkarashchenko pkarashchenko merged commit 7251645 into apache:master Aug 17, 2023
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants