mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
nuttx: fix multiple 'FAR', 'CODE' and style issues
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
committed by
Xiang Xiao
parent
5d17e4795a
commit
d499ac9d58
@@ -75,7 +75,7 @@ struct hcsr04_dev_s
|
||||
int time_start_pulse;
|
||||
int time_finish_pulse;
|
||||
volatile bool rising;
|
||||
struct pollfd *fds[CONFIG_HCSR04_NPOLLWAITERS];
|
||||
FAR struct pollfd *fds[CONFIG_HCSR04_NPOLLWAITERS];
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
@@ -341,7 +341,7 @@ static int hcsr04_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
{
|
||||
/* This is a request to tear down the poll. */
|
||||
|
||||
struct pollfd **slot = (struct pollfd **)fds->priv;
|
||||
FAR struct pollfd **slot = (FAR struct pollfd **)fds->priv;
|
||||
DEBUGASSERT(slot != NULL);
|
||||
|
||||
/* Remove all memory of the poll setup */
|
||||
|
||||
Reference in New Issue
Block a user