Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Nov 7, 2024
1 parent 4db730a commit e030479
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions linters/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ commands = cppcheck \
--check-level=exhaustive \
--enable=warning,portability,performance,style \
--suppress=assignmentInAssert \
--suppress=assertWithSideEffect \
--suppress=variableScope \
--inline-suppr \
--library=python \
Expand Down
2 changes: 1 addition & 1 deletion src/ustreamer/stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ us_stream_s *us_stream_init(us_capture_s *cap, us_encoder_s *enc) {
return stream;
}

void us_stream_update_blank(us_stream_s *stream, us_capture_s *cap) {
void us_stream_update_blank(us_stream_s *stream, const us_capture_s *cap) {
us_blank_draw(stream->run->blank, "< NO SIGNAL >", cap->width, cap->height);
}

Expand Down
2 changes: 1 addition & 1 deletion src/ustreamer/stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ typedef struct {


us_stream_s *us_stream_init(us_capture_s *cap, us_encoder_s *enc);
void us_stream_update_blank(us_stream_s *stream, us_capture_s *cap);
void us_stream_update_blank(us_stream_s *stream, const us_capture_s *cap);
void us_stream_destroy(us_stream_s *stream);

void us_stream_loop(us_stream_s *stream);
Expand Down

0 comments on commit e030479

Please sign in to comment.