Fixed gcc 4.0 warnings.
This commit is contained in:
parent
4100c22901
commit
cbca5f2297
|
@ -138,8 +138,8 @@ static BOOL query_video_device(int devnum, char *name, int namesize, char *versi
|
||||||
#ifdef HAVE_V4L2
|
#ifdef HAVE_V4L2
|
||||||
memset(&caps, 0, sizeof(caps));
|
memset(&caps, 0, sizeof(caps));
|
||||||
if (xioctl(fd, VIDIOC_QUERYCAP, &caps) != -1) {
|
if (xioctl(fd, VIDIOC_QUERYCAP, &caps) != -1) {
|
||||||
lstrcpynA(name, caps.card, namesize);
|
lstrcpynA(name, (char *)caps.card, namesize);
|
||||||
snprintf(version, versionsize, "%s v%u.%u.%u", caps.driver, (caps.version >> 16) & 0xFF,
|
snprintf(version, versionsize, "%s v%u.%u.%u", (char *)caps.driver, (caps.version >> 16) & 0xFF,
|
||||||
(caps.version >> 8) & 0xFF, caps.version & 0xFF);
|
(caps.version >> 8) & 0xFF, caps.version & 0xFF);
|
||||||
close(fd);
|
close(fd);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in New Issue