summaryrefslogtreecommitdiff
path: root/ext/syck/syck.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/syck.c
parenta0dfa4819afc91f82c04c1c02ff03ed273fdbf07 (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/syck.c')
-rw-r--r--ext/syck/syck.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/ext/syck/syck.c b/ext/syck/syck.c
index 9c9266dda9..9ac62688fa 100644
--- a/ext/syck/syck.c
+++ b/ext/syck/syck.c
@@ -177,7 +177,7 @@ syck_new_parser(void)
}
int
-syck_add_sym( SyckParser *p, char *data )
+syck_add_sym( SyckParser *p, void *data )
{
SYMID id = 0;
if ( p->syms == NULL )
@@ -190,10 +190,14 @@ syck_add_sym( SyckParser *p, char *data )
}
int
-syck_lookup_sym( SyckParser *p, SYMID id, void *data )
+syck_lookup_sym( SyckParser *p, SYMID id, void **datap )
{
+ st_data_t data = (st_data_t)*datap;
+ int ret;
if ( p->syms == NULL ) return 0;
- return st_lookup( p->syms, id, data );
+ ret = st_lookup( p->syms, id, &data );
+ *datap = (void *)data;
+ return ret;
}
int
@@ -493,7 +497,7 @@ syck_parse( SyckParser *p )
}
void
-syck_default_error_handler( SyckParser *p, char *msg )
+syck_default_error_handler( SyckParser *p, const char *msg )
{
printf( "Error at [Line %d, Col %d]: %s\n",
p->linect,