Skip to content

Commit

Permalink
Fix philips#1
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfbacon committed Dec 22, 2022
1 parent cdfd299 commit 8b7efb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libv4lconvert/control/libv4lcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/sysmacros.h>
#undef minor
#include <pwd.h>
#include "libv4lcontrol.h"
#include "libv4lcontrol-priv.h"
Expand Down Expand Up @@ -257,7 +259,7 @@ static void v4lcontrol_init_flags(struct v4lcontrol_data *data)
fclose(f);

if (s && sscanf(buf, "%*d:%d%c", &minor, &c) == 2 && c == '\n' &&
minor == minor(st.st_rdev))
minor == gnu_dev_minor(st.st_rdev))
break;
}
if (i == 256)
Expand Down

0 comments on commit 8b7efb0

Please sign in to comment.