summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bemodule.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2010-11-04 13:15:30 +0100
committerMatthias Braun <matze@braunis.de>2010-11-04 13:15:30 +0100
commitce6161a7e42a48f7422b7babcc64d8ace18e2687 (patch)
tree2fa5272f9220c4e08a5309057f44646fb9f882a7 /ir/be/bemodule.c
parentfd269bc519af571ad9a96afd65bcd504f3034f8b (diff)
make firm compilable with a c++ compiler
[r28127]
Diffstat (limited to 'ir/be/bemodule.c')
-rw-r--r--ir/be/bemodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ir/be/bemodule.c b/ir/be/bemodule.c
index 8101448..e317cea 100644
--- a/ir/be/bemodule.c
+++ b/ir/be/bemodule.c
@@ -167,7 +167,7 @@ typedef struct module_opt_data_t {
static int set_opt_module(const char *name, lc_opt_type_t type, void *data,
size_t length, ...)
{
- module_opt_data_t *moddata = data;
+ module_opt_data_t *moddata = (module_opt_data_t*)data;
int res = 0;
va_list args;
const char *opt;
@@ -196,7 +196,7 @@ static int set_opt_module(const char *name, lc_opt_type_t type, void *data,
static int dump_opt_module(char *buf, size_t buflen, const char *name,
lc_opt_type_t type, void *data, size_t length)
{
- module_opt_data_t *moddata = data;
+ module_opt_data_t *moddata = (module_opt_data_t*)data;
const be_module_list_entry_t *module;
(void) name;
(void) type;
@@ -219,7 +219,7 @@ static int dump_opt_module(char *buf, size_t buflen, const char *name,
static int dump_opt_module_vals(char *buf, size_t buflen, const char *name,
lc_opt_type_t type, void *data, size_t len)
{
- module_opt_data_t *moddata = data;
+ module_opt_data_t *moddata = (module_opt_data_t*)data;
char *p = buf;
const be_module_list_entry_t *module;
(void) name;