From eceac1612d7e1414f048758206d425c5c956f1eb Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 31 Jan 2015 13:24:59 -0600 Subject: [PATCH] Fix some compilation errors introduced in the last commit --- drivers/pipes/pipe_common.c | 2 +- drivers/pipes/pipe_common.h | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/pipes/pipe_common.c b/drivers/pipes/pipe_common.c index 7a6d921377..d9ca1f226f 100644 --- a/drivers/pipes/pipe_common.c +++ b/drivers/pipes/pipe_common.c @@ -712,7 +712,7 @@ int pipecommon_unlink(FAR struct inode *inode) FAR struct pipe_dev_s *dev; 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 */ diff --git a/drivers/pipes/pipe_common.h b/drivers/pipes/pipe_common.h index b0889faac6..8318b16f2c 100644 --- a/drivers/pipes/pipe_common.h +++ b/drivers/pipes/pipe_common.h @@ -134,6 +134,9 @@ extern "C" { # define EXTERN extern #endif +struct file; /* Forward reference */ +struct inode; /* Forware reference */ + FAR struct pipe_dev_s *pipecommon_allocdev(void); void pipecommon_freedev(FAR struct pipe_dev_s *dev); 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, bool setup); #endif -int pipecommon_unlink(FAR void *priv); +int pipecommon_unlink(FAR struct inode *priv); #undef EXTERN #ifdef __cplusplus