v4l-utils: add missing static
PATCH 1/1 v4l-utils: add missing static
Found by -Wmissing-prototypes
Signed-off-by Rosen Penev <[email protected]>
--- utils/cec-compliance/cec-compliance.cpp | 2 +- utils/cec-ctl/cec-ctl.cpp | 2 +- utils/cec-follower/cec-follower.cpp | 2 +- utils/libcecutil/cec-gen.pl | 2 +- utils/v4l2-compliance/v4l2-test-buffers.cpp | 2 +- utils/v4l2-ctl/v4l2-ctl-meta.cpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-)
utils/cec-compliance/cec-compliance.cpp +1 -1
@@ -336,7 +336,7 @@ static std::string audio_format_code2s(__u8 format_code) } } -std::string extension_type_code2s(__u8 type_code) +static std::string extension_type_code2s(__u8 type_code) { switch (type_code) { case 0:
utils/cec-ctl/cec-ctl.cpp +1 -1
@@ -409,7 +409,7 @@ static __u64 current_ts() return ts.tv_sec * 1000000000ULL + ts.tv_nsec; } -int cec_named_ioctl(int fd, const char *name, +static int cec_named_ioctl(int fd, const char *name, unsigned long int request, void *parm) { int retval = ioctl(fd, request, parm);
utils/cec-follower/cec-follower.cpp +1 -1
@@ -197,7 +197,7 @@ static std::string audio_format_code2s(__u8 format_code) } } -std::string extension_type_code2s(__u8 type_code) +static std::string extension_type_code2s(__u8 type_code) { switch (type_code) { case 0:
utils/libcecutil/cec-gen.pl +1 -1
@@ -503,7 +503,7 @@ status: printf("\t%s\n", cec_status2s(*msg).c_str()); } -void log_htng_msg(const struct cec_msg *msg) +static void log_htng_msg(const struct cec_msg *msg) { if ((msg->tx_status && !(msg->tx_status & CEC_TX_STATUS_OK)) || (msg->rx_status && !(msg->rx_status & (CEC_RX_STATUS_OK | CEC_RX_STATUS_FEATURE_ABORT))))
utils/v4l2-compliance/v4l2-test-buffers.cpp +1 -1
@@ -39,7 +39,7 @@ static bool stream_use_hdr; static std::array<unsigned int, VIDEO_MAX_PLANES> max_bytesused; static std::array<unsigned int, VIDEO_MAX_PLANES> min_data_offset; -bool operator<(struct timeval const& n1, struct timeval const& n2) +static bool operator<(struct timeval const& n1, struct timeval const& n2) { return n1.tv_sec < n2.tv_sec || (n1.tv_sec == n2.tv_sec && n1.tv_usec < n2.tv_usec);
utils/v4l2-ctl/v4l2-ctl-meta.cpp +1 -1
@@ -102,7 +102,7 @@ void meta_set(cv4l_fd &_fd) options[OptTryMetaOutFormat], V4L2_BUF_TYPE_META_OUTPUT); } -void __meta_get(const cv4l_fd &fd, __u32 type) +static void __meta_get(const cv4l_fd &fd, __u32 type) { vfmt.type = type; if (doioctl(fd.g_fd(), VIDIOC_G_FMT, &vfmt) == 0)
Signature · 1 line
2.31.1