Skip to content

Commit

Permalink
Unmodified pointers should be const (MISRA C:2004, 16.7 )
Browse files Browse the repository at this point in the history
  • Loading branch information
sander.hagendoorn committed Dec 26, 2021
1 parent 7398ba0 commit e0aff68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/printf/printf.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,14 @@ static inline void out_buffer(char character, void* buffer, size_t idx, size_t m


// internal null output
static inline void out_discard(char character, void* buffer, size_t idx, size_t maxlen)
static inline void out_discard(char character, const void* buffer, size_t idx, size_t maxlen)
{
(void)character; (void)buffer; (void)idx; (void)maxlen;
}


// internal putchar_ wrapper
static inline void out_putchar(char character, void* buffer, size_t idx, size_t maxlen)
static inline void out_putchar(char character, const void* buffer, size_t idx, size_t maxlen)
{
(void)buffer; (void)idx; (void)maxlen;
if (character) {
Expand Down

0 comments on commit e0aff68

Please sign in to comment.