Skip to content

Commit

Permalink
Fix some compilation errors introduced in the last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gregory-nutt committed Jan 31, 2015
1 parent b526350 commit eceac16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/pipes/pipe_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down
5 changes: 4 additions & 1 deletion drivers/pipes/pipe_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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
Expand Down

0 comments on commit eceac16

Please sign in to comment.