diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-16 23:23:46 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-16 23:23:46 +0000 |
commit | cef4fec60cb7f31f81f887fcfd729be41662abb1 (patch) | |
tree | 0d46ddbbeaa56d21bde1660d97c4e34c31539f11 /nuttx/drivers/can.c | |
parent | 471b50c5f8f0f49ce8abfb8f0085d05cfe32edaa (diff) | |
download | px4-nuttx-cef4fec60cb7f31f81f887fcfd729be41662abb1.tar.gz px4-nuttx-cef4fec60cb7f31f81f887fcfd729be41662abb1.tar.bz2 px4-nuttx-cef4fec60cb7f31f81f887fcfd729be41662abb1.zip |
Clean-up from big switch to stdint/stdbool
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2362 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/can.c')
-rw-r--r-- | nuttx/drivers/can.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/drivers/can.c b/nuttx/drivers/can.c index 47525257d..3be0248dc 100644 --- a/nuttx/drivers/can.c +++ b/nuttx/drivers/can.c @@ -559,13 +559,13 @@ static int can_ioctl(FAR struct file *filep, int cmd, unsigned long arg) switch (cmd) { /* CANIOCTL_RTR: Send the remote transmission request and wait for the response. - * Argument is a reference to struct canioctl_rtr_s (casting to uintptr first + * Argument is a reference to struct canioctl_rtr_s (casting to uintptr_t first * eliminates complaints on some architectures where the sizeof long is different * from the size of a pointer). */ case CANIOCTL_RTR: - ret = can_rtrread(dev, (struct canioctl_rtr_s*)((uintptr)arg)); + ret = can_rtrread(dev, (struct canioctl_rtr_s*)((uintptr_t)arg)); break; /* Not a "built-in" ioctl command.. perhaps it is unique to this device driver */ |