summaryrefslogtreecommitdiff
path: root/ext/syck/syck.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-13 11:41:19 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-13 11:41:19 +0000
commit43b1770ed6debca4a3f037b787497e82241b493d (patch)
tree1bed68031a96ea82bee923daa4775757c3c6bdfb /ext/syck/syck.c
parente4ada45df17a2ccda0073db6fc586ee1641337e4 (diff)
* ext/syck/handler.c: add proper casts.
* ext/syck/syck.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck/syck.c')
-rw-r--r--ext/syck/syck.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/syck/syck.c b/ext/syck/syck.c
index 180d40ba185..76edc902d0c 100644
--- a/ext/syck/syck.c
+++ b/ext/syck/syck.c
@@ -166,7 +166,7 @@ syck_add_sym( SyckParser *p, char *data )
p->syms = st_init_numtable();
}
id = p->syms->num_entries;
- st_insert( p->syms, id, data );
+ st_insert( p->syms, id, (st_data_t)data );
return id;
}
@@ -174,10 +174,10 @@ int
syck_lookup_sym( SyckParser *p, SYMID id, char **data )
{
if ( p->syms == NULL ) return 0;
- return st_lookup( p->syms, id, data );
+ return st_lookup( p->syms, id, (st_data_t *)data );
}
-enum st_retval
+int
syck_st_free_nodes( char *key, SyckNode *n, char *arg )
{
syck_free_node( n );
@@ -201,7 +201,7 @@ syck_free_parser( SyckParser *p )
//
// Free the anchor table
//
- st_foreach( p->anchors, syck_st_free_nodes, NULL );
+ st_foreach( p->anchors, syck_st_free_nodes, 0 );
st_free_table( p->anchors );
//