}
}
- rc = ipc_client_gprs_get_iface(ipc_client, &interface, gprs_connection->cid);
- if(rc < 0) {
+ interface = ipc_client_gprs_get_iface(ipc_client, gprs_connection->cid);
+ if(interface == NULL) {
// This is not a critical issue, fallback to rmnet
LOGE("Failed to get interface name!");
asprintf(&interface, "rmnet%d", gprs_connection->cid - 1);
ipc_client = ((struct ipc_client_object *) ipc_fmt_client->object)->ipc_client;
if(gprs_connection->interface == NULL) {
- rc = ipc_client_gprs_get_iface(ipc_client, &interface, gprs_connection->cid);
- if(rc < 0) {
+ interface = ipc_client_gprs_get_iface(ipc_client, gprs_connection->cid);
+ if(interface == NULL) {
// This is not a critical issue, fallback to rmnet
LOGE("Failed to get interface name!");
asprintf(&interface, "rmnet%d", gprs_connection->cid);
{
char *password_old = ((char **) data)[0];
char *password_new = ((char **) data)[1];
- struct ipc_sec_change_locking_pw locking_pw;
+ struct ipc_sec_change_locking_pw_set locking_pw;
memset(&locking_pw, 0, sizeof(locking_pw));