-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel: Apply const to k_pipe_put() parameter
The pointer parameter 'data' in the function 'k_pipe_put()' ought to use the const modifier as the contents of the buffer to which it points never change. Internally, that const modifier is dropped as both 'k_pipe_get()' and 'k_pipe_put()' share common code for copying data; however 'k_pipe_put()' never takes a path that modifies those contents. Signed-off-by: Peter Mitsis <[email protected]>
- Loading branch information
1 parent
b83b9be
commit 4b2bf5a
Showing
2 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters