summaryrefslogtreecommitdiff
path: root/libc/unistd/fpathconf.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-07-23 11:23:36 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-07-23 11:23:36 +0000
commit1f020b178664857b0e107778d04fb971a58e6230 (patch)
treec1cd86593b5d354091e0fa3201c5789bec5c53ad /libc/unistd/fpathconf.c
parentf1775381f91f1250b20f1949dfd0364ddb0ee9fc (diff)
- trim any trailing whitespace
Diffstat (limited to 'libc/unistd/fpathconf.c')
-rw-r--r--libc/unistd/fpathconf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/unistd/fpathconf.c b/libc/unistd/fpathconf.c
index 96bc62199..d7378630d 100644
--- a/libc/unistd/fpathconf.c
+++ b/libc/unistd/fpathconf.c
@@ -54,12 +54,12 @@ libc_hidden_proto(__libc_fstatfs)
/* Get file-specific information about descriptor FD. */
long int fpathconf(int fd, int name)
-{
+{
if (fd < 0)
{
__set_errno (EBADF);
return -1;
- }
+ }
if (name == _PC_LINK_MAX)
{
@@ -211,7 +211,7 @@ long int fpathconf(int fd, int name)
#endif
case _PC_ASYNC_IO:
-#if defined _POSIX_ASYNC_IO && defined __UCLIBC_HAS_LFS__
+#if defined _POSIX_ASYNC_IO && defined __UCLIBC_HAS_LFS__
{
/* AIO is only allowed on regular files and block devices. */
struct stat st;