aboutsummaryrefslogtreecommitdiffstats
path: root/ext/syck/implicit.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-22 18:02:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-22 18:02:12 +0000
commit5c0dcf52fd376d4b075e9ec0d402369a449fa441 (patch)
tree5b5faa5159ce507e2a575abf154c1857de5191ab /ext/syck/implicit.c
parenta0dfa4819afc91f82c04c1c02ff03ed273fdbf07 (diff)
downloadruby-5c0dcf52fd376d4b075e9ec0d402369a449fa441.tar.gz
* 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.c7
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;