mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-24 16:01:53 +08:00
POSIX Device: Fix IOCTL interface
This commit is contained in:
1 parent
fc0ff0d2f6
commit
65cf8caef2
2 files changed
+2
-2
No files matched your search
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user