diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-09-13 06:22:21 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-10-04 08:02:28 +0200 |
commit | 541889069b51d71a7872ac7df81a5f9ff2c97910 (patch) | |
tree | 1d021c934efef994d6df2e304800d14a8900c357 /cpukit/libfs/src | |
parent | 242887bc5698ac84261625013cc39112d2ce38eb (diff) |
Remove superfluous pipe_create()
Diffstat (limited to 'cpukit/libfs/src')
-rw-r--r-- | cpukit/libfs/src/pipe/pipe.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/libfs/src/pipe/pipe.c b/cpukit/libfs/src/pipe/pipe.c index 8693bd489e..d8c1c2d551 100644 --- a/cpukit/libfs/src/pipe/pipe.c +++ b/cpukit/libfs/src/pipe/pipe.c @@ -28,13 +28,16 @@ /* FIXME: This approach is questionable */ static uint16_t rtems_pipe_no = 0; -int pipe_create( +int pipe( int filsdes[2] ) { rtems_libio_t *iop; int err = 0; + if (filsdes == NULL) + rtems_set_errno_and_return_minus_one( EFAULT ); + if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0) return -1; |