mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
file_operations: get back C89 compatible initializer
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
2447b7bd9a
commit
a743fed63d
120 changed files with 868 additions and 675 deletions
|
|
@ -60,16 +60,15 @@ static int nxterm_unlink(FAR struct inode *inode);
|
|||
|
||||
const struct file_operations g_nxterm_drvrops =
|
||||
{
|
||||
nxterm_open, /* open */
|
||||
nxterm_close, /* close */
|
||||
nxterm_read, /* read */
|
||||
nxterm_write, /* write */
|
||||
NULL, /* seek */
|
||||
nxterm_ioctl, /* ioctl */
|
||||
nxterm_poll /* poll */
|
||||
nxterm_open, /* open */
|
||||
nxterm_close, /* close */
|
||||
nxterm_read, /* read */
|
||||
nxterm_write, /* write */
|
||||
NULL, /* seek */
|
||||
nxterm_ioctl, /* ioctl */
|
||||
nxterm_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
,
|
||||
nxterm_unlink /* unlink */
|
||||
, nxterm_unlink /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
@ -77,16 +76,15 @@ const struct file_operations g_nxterm_drvrops =
|
|||
|
||||
const struct file_operations g_nxterm_drvrops =
|
||||
{
|
||||
nxterm_open, /* open */
|
||||
nxterm_close, /* close */
|
||||
NULL, /* read */
|
||||
nxterm_write, /* write */
|
||||
NULL, /* seek */
|
||||
nxterm_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
nxterm_open, /* open */
|
||||
nxterm_close, /* close */
|
||||
NULL, /* read */
|
||||
nxterm_write, /* write */
|
||||
NULL, /* seek */
|
||||
nxterm_ioctl, /* ioctl */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
,
|
||||
nxterm_unlink /* unlink */
|
||||
, nxterm_unlink /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue