POSIX Device: Fix IOCTL interface

This commit is contained in:
Lorenz Meier
2015-11-14 11:16:42 +01:00
parent fc0ff0d2f6
commit 65cf8caef2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ Device::dev_write(unsigned offset, void *data, unsigned count)
} }
int int
Device::dev_ioctl(unsigned operation, unsigned &arg) Device::dev_ioctl(unsigned operation, unsigned arg)
{ {
switch (operation) { switch (operation) {
case DEVIOCGDEVICEID: case DEVIOCGDEVICEID:
+1 -1
View File
@@ -128,7 +128,7 @@ public:
* @param arg An argument to the operation. * @param arg An argument to the operation.
* @return Negative errno on error, OK or positive value on success. * @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 device bus types for DEVID