Commit 1a26aa50 authored by Yuri Chornoivan's avatar Yuri Chornoivan

Try to make it compile with gcc 9

parent 21cd56af
Pipeline #9523 passed with stage
in 14 minutes and 3 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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment