From 3a47cf3395dd4c4fe8bdd5df13aab698f2ca314b Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 15 May 2011 11:55:52 +0000 Subject: * remove trailing spaces. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- missing/alloca.c | 2 +- missing/flock.c | 4 ++-- missing/isinf.c | 2 +- missing/langinfo.c | 2 +- missing/os2.c | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) (limited to 'missing') diff --git a/missing/alloca.c b/missing/alloca.c index d23917f3f7..efc1a77dff 100644 --- a/missing/alloca.c +++ b/missing/alloca.c @@ -6,7 +6,7 @@ This implementation of the PWB library alloca() function, which is used to allocate space off the run-time stack so - that it is automatically reclaimed upon procedure exit, + that it is automatically reclaimed upon procedure exit, was inspired by discussions with J. Q. Johnson of Cornell. It should work under any C implementation that uses an diff --git a/missing/flock.c b/missing/flock.c index b02f8bf832..763c49d675 100644 --- a/missing/flock.c +++ b/missing/flock.c @@ -27,7 +27,7 @@ int flock(int fd, int operation) { struct flock lock; - + switch (operation & ~LOCK_NB) { case LOCK_SH: lock.l_type = F_RDLCK; @@ -44,7 +44,7 @@ flock(int fd, int operation) } lock.l_whence = SEEK_SET; lock.l_start = lock.l_len = 0L; - + return fcntl(fd, (operation & LOCK_NB) ? F_SETLK : F_SETLKW, &lock); } diff --git a/missing/isinf.c b/missing/isinf.c index 4aef51b213..55187adc63 100644 --- a/missing/isinf.c +++ b/missing/isinf.c @@ -27,7 +27,7 @@ isinf(double n) #include #endif -/* +/* * isinf may be provided only as a macro. * ex. HP-UX, Solaris 10 * http://www.gnu.org/software/automake/manual/autoconf/Function-Portability.html diff --git a/missing/langinfo.c b/missing/langinfo.c index 143ee0e820..9ba06b15f6 100644 --- a/missing/langinfo.c +++ b/missing/langinfo.c @@ -65,7 +65,7 @@ nl_langinfo_codeset(void) { const char *l, *p; int n; - + if (((l = getenv("LC_ALL")) && *l) || ((l = getenv("LC_CTYPE")) && *l) || ((l = getenv("LANG")) && *l)) { diff --git a/missing/os2.c b/missing/os2.c index 3448cdc281..27dc2f1964 100644 --- a/missing/os2.c +++ b/missing/os2.c @@ -94,14 +94,14 @@ char *cmd; if (*s == '=') goto doshell; */ for (s = cmd; *s; s++) { - if (*sw == '-' && *s != ' ' && + if (*sw == '-' && *s != ' ' && !isalpha(*s) && index("$&*(){}[]'\";\\|?<>~`\n",*s)) { if (*s == '\n' && !s[1]) { *s = '\0'; break; } goto doshell; - } else if (*sw == '/' && *s != ' ' && + } else if (*sw == '/' && *s != ' ' && !isalpha(*s) && index("^()<>|&\n",*s)) { if (*s == '\n' && !s[1]) { *s = '\0'; -- cgit v1.2.3