Merge "camera: avoid narrowing of the ioctl request"

This commit is contained in:
Ari Hausman-Cohen 2018-10-12 00:45:21 +00:00 committed by Gerrit Code Review
commit eef57caed9
2 changed files with 2 additions and 2 deletions

View file

@ -129,7 +129,7 @@ void V4L2Wrapper::Disconnect() {
// Helper function. Should be used instead of ioctl throughout this class.
template <typename T>
int V4L2Wrapper::IoctlLocked(int request, T data) {
int V4L2Wrapper::IoctlLocked(unsigned long request, T data) {
// Potentially called so many times logging entry is a bad idea.
std::lock_guard<std::mutex> lock(device_lock_);

View file

@ -99,7 +99,7 @@ class V4L2Wrapper {
void Disconnect();
// Perform an ioctl call in a thread-safe fashion.
template <typename T>
int IoctlLocked(int request, T data);
int IoctlLocked(unsigned long request, T data);
// Request/release userspace buffer mode via VIDIOC_REQBUFS.
int RequestBuffers(uint32_t num_buffers);