mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 13:27:01 +08:00
Fix some compilation errors introduced in the last commit
This commit is contained in:
@@ -712,7 +712,7 @@ int pipecommon_unlink(FAR struct inode *inode)
|
|||||||
FAR struct pipe_dev_s *dev;
|
FAR struct pipe_dev_s *dev;
|
||||||
|
|
||||||
DEBUGASSERT(inode && inode->i_private);
|
DEBUGASSERT(inode && inode->i_private);
|
||||||
dev = = (FAR struct pipe_dev_s *)inode->i_private;
|
dev = (FAR struct pipe_dev_s *)inode->i_private;
|
||||||
|
|
||||||
/* Mark the pipe unlinked */
|
/* Mark the pipe unlinked */
|
||||||
|
|
||||||
|
|||||||
@@ -134,6 +134,9 @@ extern "C" {
|
|||||||
# define EXTERN extern
|
# define EXTERN extern
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
struct file; /* Forward reference */
|
||||||
|
struct inode; /* Forware reference */
|
||||||
|
|
||||||
FAR struct pipe_dev_s *pipecommon_allocdev(void);
|
FAR struct pipe_dev_s *pipecommon_allocdev(void);
|
||||||
void pipecommon_freedev(FAR struct pipe_dev_s *dev);
|
void pipecommon_freedev(FAR struct pipe_dev_s *dev);
|
||||||
int pipecommon_open(FAR struct file *filep);
|
int pipecommon_open(FAR struct file *filep);
|
||||||
@@ -145,7 +148,7 @@ int pipecommon_ioctl(FAR struct file *filep, int cmd, unsigned long arg);
|
|||||||
int pipecommon_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
int pipecommon_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||||
bool setup);
|
bool setup);
|
||||||
#endif
|
#endif
|
||||||
int pipecommon_unlink(FAR void *priv);
|
int pipecommon_unlink(FAR struct inode *priv);
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
Reference in New Issue
Block a user