From aa37b208eb2ed61f2289267d64e754df986e4235 Mon Sep 17 00:00:00 2001 From: knu Date: Thu, 9 Jan 2003 04:28:28 +0000 Subject: * st.h, st.c: Back out the introduction of st_*_func_t. Some compilers complain about function type mismatch. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- st.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'st.c') diff --git a/st.c b/st.c index d9e8be497..1cc0e2f4d 100644 --- a/st.c +++ b/st.c @@ -43,8 +43,8 @@ static struct st_hash_type type_numhash = { /* extern int strcmp(const char *, const char *); */ static int strhash(const char *); static struct st_hash_type type_strhash = { - (st_compare_func_t)strcmp, - (st_hash_func_t)strhash, + strcmp, + strhash, }; #ifdef RUBY_PLATFORM @@ -482,7 +482,7 @@ st_cleanup_safe(table, never) void st_foreach(table, func, arg) st_table *table; - st_each_func_t func; + int (*func)(); st_data_t arg; { st_table_entry *ptr, *last, *tmp; -- cgit