summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-22 14:23:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-22 14:23:33 +0000
commita22b40afb40ecb02659a42c192055a6f78afffc8 (patch)
tree5b2e87ac380efcb2141c4fab97e86c25c7214799 /util.c
parent94fd9db802721da2d906518c964dcfff044aac52 (diff)
downloadruby-a22b40afb40ecb02659a42c192055a6f78afffc8.tar.gz
ruby-a22b40afb40ecb02659a42c192055a6f78afffc8.tar.xz
ruby-a22b40afb40ecb02659a42c192055a6f78afffc8.zip
stripped trailing spaces.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'util.c')
-rw-r--r--util.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/util.c b/util.c
index 4bc82f6d0..f2b38420b 100644
--- a/util.c
+++ b/util.c
@@ -101,7 +101,7 @@ scan_digits(const char *str, int base, size_t *retlen, int *overflow)
*overflow = 1;
ret *= base;
x = ret;
- ret += d;
+ ret += d;
if (ret < x)
*overflow = 1;
}
@@ -217,11 +217,11 @@ ruby_strtoul(const char *str, char **endptr, int base)
* Style 1: The suffix begins with a '.'. The extension is replaced.
* If the name matches the original name, use the fallback method.
*
- * Style 2: The suffix is a single character, not a '.'. Try to add the
+ * Style 2: The suffix is a single character, not a '.'. Try to add the
* suffix to the following places, using the first one that works.
- * [1] Append to extension.
- * [2] Append to filename,
- * [3] Replace end of extension,
+ * [1] Append to extension.
+ * [2] Append to filename,
+ * [3] Replace end of extension,
* [4] Replace end of filename.
* If the name matches the original name, use the fallback method.
*
@@ -257,7 +257,7 @@ ruby_strtoul(const char *str, char **endptr, int base)
* longname.fil => longname.fi~
* longname.fi~ => longnam~.fi~
* longnam~.fi~ => longnam~.$$$
- *
+ *
*/
@@ -311,7 +311,7 @@ ruby_add_suffix(VALUE str, const char *suffix)
strcpy(p, suffix);
}
else if (suffix[1] == '\0') { /* Style 2 */
- if (extlen < 4) {
+ if (extlen < 4) {
ext[extlen] = *suffix;
ext[++extlen] = '\0';
}
@@ -336,7 +336,7 @@ fallback:
}
#if defined(__CYGWIN32__) || defined(_WIN32)
-static int
+static int
valid_filename(const char *s)
{
int fd;