Skip to content
Snippets Groups Projects
Commit 63f23256 authored by Yuri Chornoivan's avatar Yuri Chornoivan Committed by Vincent Pinon
Browse files

Try to make it compile with gcc 9


BUG: 413416

Signed-off-by: default avatarVincent Pinon <vpinon@kde.org>
parent 5f940760
No related branches found
No related tags found
No related merge requests found
Pipeline #9974 passed with stage
in 14 minutes and 33 seconds
......@@ -351,8 +351,9 @@ int probe_device(struct media_ctrl *mc)
void find_first_device(struct media_ctrl *mc)
{
char buf[256];
int i;
for (int i = 0; i < 32; i++) {
for (i = 0; i < 32; i++) {
sprintf(buf, "/dev/input/event%d", i);
int fd = open(buf, O_RDONLY);
if (fd < 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment