summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/fcntl.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-03-19 22:59:20 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-03-19 22:59:20 +0000
commitc0a3642981b441d255e9b866ab783b62bedc6c57 (patch)
tree45d3a74ce3a7d97343f2a2727218ff77b35a969c /cpukit/libcsupport/src/fcntl.c
parentTowards automake XI patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>: (diff)
downloadrtems-c0a3642981b441d255e9b866ab783b62bedc6c57.tar.bz2
A cleanup patch on fcntl.c from Eric Norum <eric@skatter.usask.ca> for
2 lines of code that did not get included when Joel tried to manually add a rejected patch.
Diffstat (limited to 'cpukit/libcsupport/src/fcntl.c')
-rw-r--r--cpukit/libcsupport/src/fcntl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/fcntl.c b/cpukit/libcsupport/src/fcntl.c
index 3a65a74574..9b89711fcc 100644
--- a/cpukit/libcsupport/src/fcntl.c
+++ b/cpukit/libcsupport/src/fcntl.c
@@ -126,6 +126,8 @@ int fcntl(
break;
default:
+ errno = EINVAL;
+ ret = -1;
break;
}
if ((ret >= 0) && iop->handlers->fcntl) {