aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/device/aries/aries_ipc.c
diff options
context:
space:
mode:
Diffstat (limited to 'samsung-ipc/device/aries/aries_ipc.c')
-rw-r--r--samsung-ipc/device/aries/aries_ipc.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/samsung-ipc/device/aries/aries_ipc.c b/samsung-ipc/device/aries/aries_ipc.c
index 4860724..d987822 100644
--- a/samsung-ipc/device/aries/aries_ipc.c
+++ b/samsung-ipc/device/aries/aries_ipc.c
@@ -835,9 +835,10 @@ int aries_ipc_gprs_deactivate(void *data)
return 0;
}
-int aries_ipc_gprs_get_iface(char **iface, int cid)
+char* aries_ipc_gprs_get_iface(int cid)
{
struct ifreq ifr;
+ char *iface;
int fd;
int rc;
int i;
@@ -854,13 +855,11 @@ int aries_ipc_gprs_get_iface(char **iface, int cid)
continue;
} else {
asprintf(iface, "%s%d", GPRS_IFACE_PREFIX, i);
- return 0;
+ return iface;
}
}
- *iface = NULL;
-
- return -1;
+ return NULL;
}
int aries_ipc_gprs_get_capabilities(struct ipc_client_gprs_capabilities *cap)