summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-08-10 16:57:15 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-08-10 16:57:15 +0000
commite063148b2411ed982cbd9e5cc13853f38462ac5a (patch)
tree96381b139a3a339609ec34900a53a2ce7e06beda /nuttx
parente296c8e33449dc121a02d0270c66e778ae140617 (diff)
downloadpx4-nuttx-e063148b2411ed982cbd9e5cc13853f38462ac5a.tar.gz
px4-nuttx-e063148b2411ed982cbd9e5cc13853f38462ac5a.tar.bz2
px4-nuttx-e063148b2411ed982cbd9e5cc13853f38462ac5a.zip
Fixes for Z16F compiler
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@808 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/drivers/Makefile2
-rw-r--r--nuttx/drivers/fifo.c2
-rw-r--r--nuttx/drivers/pipe.c4
-rw-r--r--nuttx/drivers/pipe_common.c (renamed from nuttx/drivers/pipe-common.c)13
-rw-r--r--nuttx/drivers/pipe_common.h (renamed from nuttx/drivers/pipe-common.h)2
5 files changed, 15 insertions, 8 deletions
diff --git a/nuttx/drivers/Makefile b/nuttx/drivers/Makefile
index 53eff3f11..55e703015 100644
--- a/nuttx/drivers/Makefile
+++ b/nuttx/drivers/Makefile
@@ -44,7 +44,7 @@ AOBJS = $(ASRCS:.S=$(OBJEXT))
CSRCS =
ifneq ($(CONFIG_NFILE_DESCRIPTORS),0)
-CSRCS += dev_null.c dev_zero.c pipe.c fifo.c pipe-common.c serial.c lowconsole.c can.c
+CSRCS += dev_null.c dev_zero.c pipe.c fifo.c pipe_common.c serial.c lowconsole.c can.c
ifneq ($(CONFIG_DISABLE_MOUNTPOINT),y)
CSRCS += ramdisk.c
endif
diff --git a/nuttx/drivers/fifo.c b/nuttx/drivers/fifo.c
index 9ad64dbcb..2465d41dc 100644
--- a/nuttx/drivers/fifo.c
+++ b/nuttx/drivers/fifo.c
@@ -47,7 +47,7 @@
#include <nuttx/fs.h>
#include <errno.h>
-#include "pipe-common.h"
+#include "pipe_common.h"
#if CONFIG_DEV_PIPE_SIZE > 0
diff --git a/nuttx/drivers/pipe.c b/nuttx/drivers/pipe.c
index 5e0b2f6e5..677bcfe4c 100644
--- a/nuttx/drivers/pipe.c
+++ b/nuttx/drivers/pipe.c
@@ -51,7 +51,7 @@
#include <fcntl.h>
#include <errno.h>
-#include "pipe-common.h"
+#include "pipe_common.h"
#if CONFIG_DEV_PIPE_SIZE > 0
@@ -178,7 +178,7 @@ static int pipe_close(FAR struct file *filep)
****************************************************************************/
int pipe(int filedes[2])
{
- struct pipe_dev_s *dev;
+ struct pipe_dev_s *dev = NULL;
char devname[16];
int pipeno;
int err;
diff --git a/nuttx/drivers/pipe-common.c b/nuttx/drivers/pipe_common.c
index 198d9d129..59b9f79c8 100644
--- a/nuttx/drivers/pipe-common.c
+++ b/nuttx/drivers/pipe_common.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * drivers/pipe-common.c
+ * drivers/pipe_common.c
*
* Copyright (C) 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -54,7 +54,7 @@
#include <assert.h>
#include <nuttx/fs.h>
-#include "pipe-common.h"
+#include "pipe_common.h"
#if CONFIG_DEV_PIPE_SIZE > 0
@@ -83,6 +83,7 @@ static void pipecommon_semtake(sem_t *sem);
/****************************************************************************
* Name: pipecommon_semtake
****************************************************************************/
+
static void pipecommon_semtake(sem_t *sem)
{
while (sem_wait(sem) != 0)
@@ -102,6 +103,7 @@ static void pipecommon_semtake(sem_t *sem)
/****************************************************************************
* Name: pipecommon_allocdev
****************************************************************************/
+
FAR struct pipe_dev_s *pipecommon_allocdev(void)
{
struct pipe_dev_s *dev;
@@ -124,7 +126,8 @@ FAR struct pipe_dev_s *pipecommon_allocdev(void)
/****************************************************************************
* Name: pipecommon_freedev
****************************************************************************/
- void pipecommon_freedev(FAR struct pipe_dev_s *dev)
+
+void pipecommon_freedev(FAR struct pipe_dev_s *dev)
{
sem_destroy(&dev->d_bfsem);
sem_destroy(&dev->d_rdsem);
@@ -135,6 +138,7 @@ FAR struct pipe_dev_s *pipecommon_allocdev(void)
/****************************************************************************
* Name: pipecommon_open
****************************************************************************/
+
int pipecommon_open(FAR struct file *filep)
{
struct inode *inode = filep->f_inode;
@@ -212,6 +216,7 @@ int pipecommon_open(FAR struct file *filep)
/****************************************************************************
* Name: pipecommon_close
****************************************************************************/
+
int pipecommon_close(FAR struct file *filep)
{
struct inode *inode = filep->f_inode;
@@ -280,6 +285,7 @@ int pipecommon_close(FAR struct file *filep)
/****************************************************************************
* Name: pipecommon_read
****************************************************************************/
+
ssize_t pipecommon_read(FAR struct file *filep, FAR char *buffer, size_t len)
{
struct inode *inode = filep->f_inode;
@@ -362,6 +368,7 @@ ssize_t pipecommon_read(FAR struct file *filep, FAR char *buffer, size_t len)
/****************************************************************************
* Name: pipecommon_write
****************************************************************************/
+
ssize_t pipecommon_write(FAR struct file *filep, FAR const char *buffer, size_t len)
{
struct inode *inode = filep->f_inode;
diff --git a/nuttx/drivers/pipe-common.h b/nuttx/drivers/pipe_common.h
index 12fd72222..34bde18c3 100644
--- a/nuttx/drivers/pipe-common.h
+++ b/nuttx/drivers/pipe_common.h
@@ -1,5 +1,5 @@
/****************************************************************************
- * drivers/pipe-common.h
+ * drivers/pipe_common.h
*
* Copyright (C) 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>