Skip to content

Commit e030479

Browse files
committed
lint fixes
1 parent 4db730a commit e030479

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

linters/tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ commands = cppcheck \
1616
--check-level=exhaustive \
1717
--enable=warning,portability,performance,style \
1818
--suppress=assignmentInAssert \
19+
--suppress=assertWithSideEffect \
1920
--suppress=variableScope \
2021
--inline-suppr \
2122
--library=python \

src/ustreamer/stream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ us_stream_s *us_stream_init(us_capture_s *cap, us_encoder_s *enc) {
129129
return stream;
130130
}
131131

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

src/ustreamer/stream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ typedef struct {
9696

9797

9898
us_stream_s *us_stream_init(us_capture_s *cap, us_encoder_s *enc);
99-
void us_stream_update_blank(us_stream_s *stream, us_capture_s *cap);
99+
void us_stream_update_blank(us_stream_s *stream, const us_capture_s *cap);
100100
void us_stream_destroy(us_stream_s *stream);
101101

102102
void us_stream_loop(us_stream_s *stream);

0 commit comments

Comments
 (0)