summaryrefslogtreecommitdiffhomepage
path: root/src/st.c
diff options
context:
space:
mode:
authorMax Anselm <[email protected]>2012-07-29 19:45:27 -0400
committerMax Anselm <[email protected]>2012-07-29 19:48:48 -0400
commit5a4beeed2d0c229a3a558650f03c8390da2d556c (patch)
tree545bffc9810de3e29bd94625aa48aa748d4c1dce /src/st.c
parentee899778c4f6cb0d201e50996e73639eabf98704 (diff)
downloadmruby-5a4beeed2d0c229a3a558650f03c8390da2d556c.tar.gz
mruby-5a4beeed2d0c229a3a558650f03c8390da2d556c.zip
Make all(?) void casts explicit for C++
Diffstat (limited to 'src/st.c')
-rw-r--r--src/st.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/st.c b/src/st.c
index 257da7e2b..c3c20c80a 100644
--- a/src/st.c
+++ b/src/st.c
@@ -24,21 +24,21 @@
static int numcmp(long, long);
static st_index_t numhash(long);
static struct st_hash_type type_numhash = {
- numcmp,
- numhash,
+ (int (*)(ANYARGS))numcmp,
+ (st_index_t (*)(ANYARGS))numhash,
};
/* extern int strcmp(const char *, const char *); */
static st_index_t strhash(const char*);
static struct st_hash_type type_strhash = {
- strcmp,
- strhash,
+ (int (*)(ANYARGS))strcmp,
+ (st_index_t (*)(ANYARGS))strhash,
};
static st_index_t strcasehash(st_data_t);
static const struct st_hash_type type_strcasehash = {
- st_strcasecmp,
- strcasehash,
+ (int (*)(ANYARGS))st_strcasecmp,
+ (st_index_t (*)(ANYARGS))strcasehash,
};
static void rehash(st_table*);