Browse Source

POSIX Device: Fix IOCTL interface

sbg
Lorenz Meier 9 years ago
parent
commit
65cf8caef2
  1. 2
      src/drivers/device/device_posix.cpp
  2. 2
      src/drivers/device/vdev.h

2
src/drivers/device/device_posix.cpp

@ -96,7 +96,7 @@ Device::dev_write(unsigned offset, void *data, unsigned count) @@ -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:

2
src/drivers/device/vdev.h

@ -128,7 +128,7 @@ public: @@ -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

Loading…
Cancel
Save