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: Vincent Pinon's avatarVincent Pinon <vpinon@kde.org>
parent 5f940760
Pipeline #9974 passed with stage
in 14 minutes and 33 seconds
...@@ -351,8 +351,9 @@ int probe_device(struct media_ctrl *mc) ...@@ -351,8 +351,9 @@ int probe_device(struct media_ctrl *mc)
void find_first_device(struct media_ctrl *mc) void find_first_device(struct media_ctrl *mc)
{ {
char buf[256]; 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); sprintf(buf, "/dev/input/event%d", i);
int fd = open(buf, O_RDONLY); int fd = open(buf, O_RDONLY);
if (fd < 0) { 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