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