summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-29 08:16:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-29 08:16:19 +0000
commitae72efc541bc716b86124a1807cfea1257938ad4 (patch)
tree5797358026fe225ffb9dfbbb38fb4d04ee19ac69 /file.c
parentb861b2a6b2eb4deda6e842c705cf6b602fad3784 (diff)
* file.c (BUFCHECK): use common bdiff.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.c b/file.c
index 256c348d0f..516737ddc2 100644
--- a/file.c
+++ b/file.c
@@ -2642,7 +2642,7 @@ ntfs_tail(const char *path)
#endif
#define BUFCHECK(cond) do {\
- size_t bdiff = p - buf;\
+ bdiff = p - buf;\
if (cond) {\
do {buflen *= 2;} while (cond);\
rb_str_resize(result, buflen);\
@@ -2711,7 +2711,7 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
{
const char *s, *b;
char *buf, *p, *pend, *root;
- size_t buflen, dirlen;
+ size_t buflen, dirlen, bdiff;
int tainted;
rb_encoding *extenc = 0;