summaryrefslogtreecommitdiff
path: root/libc/src/close.c
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-02-05 13:43:35 -0800
committerPixel <pixel@nobis-crew.org>2011-02-05 13:43:35 -0800
commitab16fcf76e616dfa7cac2cb3dd909ba2a8eb2a9f (patch)
tree5f93ecc452d648bbd84ffeda38ee5a0247e37dcc /libc/src/close.c
parent8361bc28f9215a07e2275f55561408d1bfca112f (diff)
Slightly better errno support.
Diffstat (limited to 'libc/src/close.c')
-rw-r--r--libc/src/close.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/src/close.c b/libc/src/close.c
index fd4256f..f508a2c 100644
--- a/libc/src/close.c
+++ b/libc/src/close.c
@@ -4,7 +4,7 @@
int close(int fd) {
if (!fio_is_open(fd)) {
- _impure_ptr->_errno = EBADF;
+ set_errno(EBADF);
return -1;
}