summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bemodule.c
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-13 21:17:56 +0200
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-14 07:39:19 +0200
commit62b5658d14662a60b6fd12b007d088b6150f5038 (patch)
tree7fcb23b9c94540452567a8a93289f9d2c42a78f1 /ir/be/bemodule.c
parent932ae2dc3964d611ba423a04b96b3a5690e8397e (diff)
Just pass the argument string instead of a decoded variadic argument to option callbacks.
Diffstat (limited to 'ir/be/bemodule.c')
-rw-r--r--ir/be/bemodule.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/ir/be/bemodule.c b/ir/be/bemodule.c
index 632664c..a00a5d0 100644
--- a/ir/be/bemodule.c
+++ b/ir/be/bemodule.c
@@ -143,14 +143,10 @@ typedef struct module_opt_data_t {
* return true.
* Beware: return value of 0 means error.
*/
-static bool set_opt_module(void *data, size_t length, ...)
+static bool set_opt_module(void *const data, size_t const length, char const *const opt)
{
(void)length;
- va_list args;
- va_start(args, length);
- const char *opt = va_arg(args, const char*);
-
const module_opt_data_t *moddata = (module_opt_data_t*)data;
bool res = false;
for (const be_module_list_entry_t *module = *(moddata->list_head);
@@ -161,7 +157,6 @@ static bool set_opt_module(void *data, size_t length, ...)
break;
}
}
- va_end(args);
return res;
}