mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +08:00
file_operations: get back C89 compatible initializer
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
committed by
Xiang Xiao
parent
2447b7bd9a
commit
a743fed63d
@@ -41,15 +41,15 @@
|
||||
|
||||
static const struct file_operations fifo_fops =
|
||||
{
|
||||
pipecommon_open, /* open */
|
||||
pipecommon_close, /* close */
|
||||
pipecommon_read, /* read */
|
||||
pipecommon_write, /* write */
|
||||
0, /* seek */
|
||||
pipecommon_ioctl, /* ioctl */
|
||||
pipecommon_poll, /* poll */
|
||||
pipecommon_open, /* open */
|
||||
pipecommon_close, /* close */
|
||||
pipecommon_read, /* read */
|
||||
pipecommon_write, /* write */
|
||||
NULL, /* seek */
|
||||
pipecommon_ioctl, /* ioctl */
|
||||
pipecommon_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
pipecommon_unlink /* unlink */
|
||||
, pipecommon_unlink /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
@@ -61,15 +61,15 @@ static int pipe_close(FAR struct file *filep);
|
||||
|
||||
static const struct file_operations pipe_fops =
|
||||
{
|
||||
pipecommon_open, /* open */
|
||||
pipe_close, /* close */
|
||||
pipecommon_read, /* read */
|
||||
pipecommon_write, /* write */
|
||||
0, /* seek */
|
||||
pipecommon_ioctl, /* ioctl */
|
||||
pipecommon_poll, /* poll */
|
||||
pipecommon_open, /* open */
|
||||
pipe_close, /* close */
|
||||
pipecommon_read, /* read */
|
||||
pipecommon_write, /* write */
|
||||
NULL, /* seek */
|
||||
pipecommon_ioctl, /* ioctl */
|
||||
pipecommon_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
pipecommon_unlink /* unlink */
|
||||
, pipecommon_unlink /* unlink */
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user