From 69459d98ef81c26291d8504dbcd904eda71e7e31 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 23 Jun 2003 08:41:07 +0000 Subject: * dir.c (find_dirsep): get rid of warnings. * eval.c (error_print): temporary value might be disposed by GC. * hash.c (env_has_value, env_index): should not increment NULL. * io.c (io_read, rb_io_sysread): not read when length is 0. * io.c (rb_io_reopen): ensure initialized IO. * io.c (rb_io_init_copy): sychronize file pointer. * io.c (rb_io_s_pipe): make exception proof. * string.c (rb_str_rindex_m): Fixnum 0 matched end of string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- dir.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dir.c') diff --git a/dir.c b/dir.c index 156c1d59dd..7a188cacbb 100644 --- a/dir.c +++ b/dir.c @@ -82,9 +82,9 @@ char *strchr _((char*,char)); #if defined DOSISH #define isdirsep(c) ((c) == '/' || (c) == '\\') -static char * +static const char * find_dirsep(s) - char *s; + const char *s; { while (*s) { if (isdirsep(*s)) @@ -767,7 +767,7 @@ glob_helper(path, sub, flags, func, arg) free(magic); break; } - + #if defined DOSISH_DRIVE_LETTER #define BASE (*base && !((isdirsep(*base) && !base[1]) || (base[1] == ':' && isdirsep(base[2]) && !base[3]))) #else -- cgit v1.2.3