@@ -407,11 +407,16 @@ extern struct ofono_driver_desc __start___call_barring[];
struct ofono_call_barring *ofono_call_barring_create(struct ofono_modem *modem,
unsigned int vendor,
const char *driver,
- void *data)
+ ...)
{
- struct rilmodem_cb_data *rsd = data;
+ struct rilmodem_cb_data *rsd;
struct ofono_call_barring *cb = g_new0(struct ofono_call_barring, 1);
int retval;
+ va_list args;
+
+ va_start(args, driver);
+ rsd = va_arg(args, void *);
+ va_end(args);
cbdriver = __start___call_barring[0].driver;
@@ -383,11 +383,16 @@ extern struct ofono_driver_desc __start___call_settings[];
struct ofono_call_settings *ofono_call_settings_create(struct ofono_modem *modem,
unsigned int vendor,
const char *driver,
- void *data)
+ ...)
{
- struct rilmodem_cs_data *rcd = data;
+ struct rilmodem_cs_data *rcd;
struct ofono_call_settings *cs = g_new0(struct ofono_call_settings, 1);
int retval;
+ va_list args;
+
+ va_start(args, driver);
+ rcd = va_arg(args, void *);
+ va_end(args);
csdriver = __start___call_settings[0].driver;
@@ -414,11 +414,16 @@ extern struct ofono_driver_desc __start___sms[];
struct ofono_sms *ofono_sms_create(struct ofono_modem *modem,
unsigned int vendor,
const char *driver,
- void *data)
+ ...)
{
- struct rilmodem_sms_data *rsd = data;
+ struct rilmodem_sms_data *rsd;
struct ofono_sms *sms = g_new0(struct ofono_sms, 1);
int retval;
+ va_list args;
+
+ va_start(args, driver);
+ rsd = va_arg(args, void *);
+ va_end(args);
smsdriver = __start___sms[0].driver;