From 65cf8caef2fe262dbcb58c7455b8c3e6548e9f77 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sat, 14 Nov 2015 11:16:42 +0100 Subject: [PATCH] POSIX Device: Fix IOCTL interface --- src/drivers/device/device_posix.cpp | 2 +- src/drivers/device/vdev.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/device/device_posix.cpp b/src/drivers/device/device_posix.cpp index 088d7ccdf8..cd3bad09ce 100644 --- a/src/drivers/device/device_posix.cpp +++ b/src/drivers/device/device_posix.cpp @@ -96,7 +96,7 @@ Device::dev_write(unsigned offset, void *data, unsigned count) } int -Device::dev_ioctl(unsigned operation, unsigned &arg) +Device::dev_ioctl(unsigned operation, unsigned arg) { switch (operation) { case DEVIOCGDEVICEID: diff --git a/src/drivers/device/vdev.h b/src/drivers/device/vdev.h index d1fb8ff8e1..419c92e456 100644 --- a/src/drivers/device/vdev.h +++ b/src/drivers/device/vdev.h @@ -128,7 +128,7 @@ public: * @param arg An argument to the operation. * @return Negative errno on error, OK or positive value on success. */ - virtual int dev_ioctl(unsigned operation, unsigned &arg); + virtual int dev_ioctl(unsigned operation, unsigned arg); /* device bus types for DEVID