diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-07-23 11:23:36 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-07-23 11:23:36 +0000 |
commit | 1f020b178664857b0e107778d04fb971a58e6230 (patch) | |
tree | c1cd86593b5d354091e0fa3201c5789bec5c53ad /libc/unistd | |
parent | f1775381f91f1250b20f1949dfd0364ddb0ee9fc (diff) |
- trim any trailing whitespace
Diffstat (limited to 'libc/unistd')
-rw-r--r-- | libc/unistd/daemon.c | 4 | ||||
-rw-r--r-- | libc/unistd/fpathconf.c | 6 | ||||
-rw-r--r-- | libc/unistd/getopt-susv3.c | 2 | ||||
-rw-r--r-- | libc/unistd/getopt.c | 8 | ||||
-rw-r--r-- | libc/unistd/getopt_int.h | 2 | ||||
-rw-r--r-- | libc/unistd/usershell.c | 2 |
6 files changed, 12 insertions, 12 deletions
diff --git a/libc/unistd/daemon.c b/libc/unistd/daemon.c index 8a2439714..d565ed41d 100644 --- a/libc/unistd/daemon.c +++ b/libc/unistd/daemon.c @@ -13,8 +13,8 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change - * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change> + * 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change + * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change> * * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software 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; diff --git a/libc/unistd/getopt-susv3.c b/libc/unistd/getopt-susv3.c index 73d7a7e38..c22dd9ffb 100644 --- a/libc/unistd/getopt-susv3.c +++ b/libc/unistd/getopt-susv3.c @@ -84,7 +84,7 @@ int getopt(int argc, char * const argv[], const char *optstring) retval = '?'; goto BAD; } - + if (s[1] == ':') { /* Option takes an arg? */ if (o[1]) { /* No space between option and arg? */ optarg = (char *)(o + 1); diff --git a/libc/unistd/getopt.c b/libc/unistd/getopt.c index 754e86f25..ac005e4f8 100644 --- a/libc/unistd/getopt.c +++ b/libc/unistd/getopt.c @@ -25,7 +25,7 @@ * Modified for uClibc by Manuel Novoa III on 1/5/01. * Modified once again for uClibc by Erik Andersen 8/7/02 */ - + /* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>. Ditto for AIX 3.2 and <stdlib.h>. */ #ifndef _NO_PROTO @@ -166,7 +166,7 @@ int optopt = '?'; static struct _getopt_data getopt_data; - + #ifndef __GNU_LIBRARY__ /* Avoid depending on library functions or files @@ -177,7 +177,7 @@ extern char *getenv (); #endif #endif /* not __GNU_LIBRARY__ */ - + #ifdef _LIBC /* Stored original parameters. XXX This is no good solution. We should rather copy the args so @@ -359,7 +359,7 @@ _getopt_initialize (attribute_unused int argc, attribute_unused char *const *arg return optstring; } - + /* Scan elements of ARGV (whose length is ARGC) for option characters given in OPTSTRING. diff --git a/libc/unistd/getopt_int.h b/libc/unistd/getopt_int.h index 5637c109f..a871785d1 100644 --- a/libc/unistd/getopt_int.h +++ b/libc/unistd/getopt_int.h @@ -26,7 +26,7 @@ extern int _getopt_internal (int ___argc, char *const *___argv, const struct option *__longopts, int *__longind, int __long_only) attribute_hidden; - + /* Reentrant versions which can handle parsing multiple argument vectors at the same time. */ diff --git a/libc/unistd/usershell.c b/libc/unistd/usershell.c index 5f5b787c2..1bf143daf 100644 --- a/libc/unistd/usershell.c +++ b/libc/unistd/usershell.c @@ -27,7 +27,7 @@ * SUCH DAMAGE. * * This version has been hevily modified for use with uClibc - * November 2002, Erik Andersen <andersen@codepoet.org> + * November 2002, Erik Andersen <andersen@codepoet.org> */ #include <sys/param.h> |