summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-22 01:00:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-22 01:00:18 +0000
commit3f0d0b9398b5af9311f8e570c0a8966ed9944d25 (patch)
tree22ed07f9cf180380f56d3767725522ef6feecb70 /util.c
parent69743fbd85b659601174bff9fb61abc8c662c13b (diff)
* *.[chy]: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'util.c')
-rw-r--r--util.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/util.c b/util.c
index 961aaba4c7..0f72e31557 100644
--- a/util.c
+++ b/util.c
@@ -106,11 +106,11 @@ scan_hex(start, len, retlen)
* 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.
*
@@ -146,7 +146,7 @@ scan_hex(start, len, retlen)
* longname.fil => longname.fi~
* longname.fi~ => longnam~.fi~
* longnam~.fi~ => longnam~.$$$
- *
+ *
*/
@@ -206,7 +206,7 @@ ruby_add_suffix(str, suffix)
strcpy(p, suffix);
}
else if (suffix[1] == '\0') { /* Style 2 */
- if (extlen < 4) {
+ if (extlen < 4) {
ext[extlen] = *suffix;
ext[++extlen] = '\0';
}
@@ -237,7 +237,7 @@ extern int _close(int);
extern int _unlink(const char *);
#endif
-static int
+static int
valid_filename(char *s)
{
int fd;