mirror of
https://github.com/apache/nuttx.git
synced 2025-12-13 23:17:11 +08:00
Eliminate a warning
This commit is contained in:
2
arch
2
arch
Submodule arch updated: 0761b677ef...2b89cb7d76
2
configs
2
configs
Submodule configs updated: 16d7a0dab2...dd63cfca08
@@ -900,7 +900,7 @@ static int uart_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
|
||||
irqrestore(state);
|
||||
|
||||
*(int *)arg = count;
|
||||
*(FAR int *)((uintptr_t)arg) = count;
|
||||
ret = 0;
|
||||
}
|
||||
break;
|
||||
@@ -923,7 +923,7 @@ static int uart_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
|
||||
irqrestore(state);
|
||||
|
||||
*(int *)arg = count;
|
||||
*(FAR int *)((uintptr_t)arg) = count;
|
||||
ret = 0;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user