summaryrefslogtreecommitdiff
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
commit12d2c8ba41edb5a02a7471e39d67ece2894492d8 (patch)
tree5b2e87ac380efcb2141c4fab97e86c25c7214799 /util.c
parent624d07b0e4257a5261558a154eddd464d85e6174 (diff)
downloadbundler-12d2c8ba41edb5a02a7471e39d67ece2894492d8.tar.gz
stripped trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/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 4bc82f6d04..f2b38420b8 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;