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

refactor(nl): mark subnet_mask param as const #268

Merged
merged 2 commits into from
Sep 9, 2022

Conversation

aloisklink
Copy link
Contributor

The subnet_mask is never modified, so we can convert it to a const char * and make our life easier.

This fixes a compiler warning.

The `subnet_mask` is never modified, so we can convert it to a
`const char *` and make our life easier.

This fixes a compiler warning.
@aloisklink aloisklink added the refactor Refactoring code label Sep 9, 2022
@codecov
Copy link

codecov bot commented Sep 9, 2022

Codecov Report

Merging #268 (b4b7359) into main (7ba1c56) will not change coverage.
The diff coverage is n/a.

❗ Current head b4b7359 differs from pull request most recent head 7f11d56. Consider uploading reports for the commit 7f11d56 to get more accurate results

@@           Coverage Diff           @@
##             main     #268   +/-   ##
=======================================
  Coverage   48.51%   48.51%           
=======================================
  Files         113      113           
  Lines       17887    17887           
=======================================
  Hits         8678     8678           
  Misses       9209     9209           
Impacted Files Coverage Δ
src/utils/nl.c 10.71% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@aloisklink aloisklink merged commit a5d75d3 into main Sep 9, 2022
@aloisklink aloisklink deleted the refactor/make-nl-subnet_mask-const branch September 9, 2022 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Refactoring code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants