diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-22 18:02:12 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-22 18:02:12 +0000 |
commit | 5c0dcf52fd376d4b075e9ec0d402369a449fa441 (patch) | |
tree | 5b5faa5159ce507e2a575abf154c1857de5191ab /ext/syck/implicit.c | |
parent | a0dfa4819afc91f82c04c1c02ff03ed273fdbf07 (diff) |
* ext/syck: suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck/implicit.c')
-rw-r--r-- | ext/syck/implicit.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/syck/implicit.c b/ext/syck/implicit.c index 92a31d8006..58abfc9769 100644 --- a/ext/syck/implicit.c +++ b/ext/syck/implicit.c @@ -20,7 +20,7 @@ void try_tag_implicit( SyckNode *n, int taguri ) { - char *tid = ""; + const char *tid = ""; switch ( n->kind ) { case syck_str_kind: @@ -44,9 +44,10 @@ try_tag_implicit( SyckNode *n, int taguri ) } } -char *syck_match_implicit( char *str, size_t len ) +const char * +syck_match_implicit( const char *str, size_t len ) { - char *cursor, *limit, *marker; + const char *cursor, *limit, *marker; cursor = str; limit = str + len; |