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

Add 'const' qualifier to bf_sys_log parameters #28

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

ffoulkes
Copy link
Contributor

@ffoulkes ffoulkes commented Apr 28, 2024

Declared the parameters to bf_sys_log_init() to be const pointers, so you can pass a literal string to them without getting compile errors. (Plus, it's good programming practice to declare all input pointer parameters as pointers to const, making their values explicitly immutable.)

Did the same for several other functions that aren't part of the external interface.

- Declared the parameters to bf_sys_log_init() to be const
  pointers, so you can pass a literal string to them without
  getting compile errors. Did the same for several other
  functions that aren't part of the external interface.

Signed-off-by: Derek G Foster <[email protected]>
@saynb saynb merged commit 240969c into p4lang:main Apr 30, 2024
2 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.

3 participants