diff options
author | Simon Busch <morphis@gravedo.de> | 2012-09-05 09:53:36 +0200 |
---|---|---|
committer | Simon Busch <morphis@gravedo.de> | 2012-09-09 12:23:21 +0200 |
commit | 3a9c878ca37442aca10917306fffb625c46b0ec4 (patch) | |
tree | 0d60e6b6ab27f6e8e7746b3b1abb6f7097f1dc59 /include | |
parent | db180081a182a2cd5652f9b1c147b974bae54811 (diff) | |
download | external_libsamsung-ipc-3a9c878ca37442aca10917306fffb625c46b0ec4.zip external_libsamsung-ipc-3a9c878ca37442aca10917306fffb625c46b0ec4.tar.gz external_libsamsung-ipc-3a9c878ca37442aca10917306fffb625c46b0ec4.tar.bz2 |
ipc: refactor ipc_client_gprs_get_iface method to return iface name instead of using a parameter
Allocating memory and setting a pointer to it for the user via a parameter is kind of
unnecessary. It's better to return the pointer instead.
Diffstat (limited to 'include')
-rw-r--r-- | include/radio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/radio.h b/include/radio.h index dec8ef6..bba9e60 100644 --- a/include/radio.h +++ b/include/radio.h @@ -88,7 +88,7 @@ int ipc_client_power_off(struct ipc_client *client); int ipc_client_gprs_handlers_available(struct ipc_client *client); int ipc_client_gprs_activate(struct ipc_client *client); int ipc_client_gprs_deactivate(struct ipc_client *client); -int ipc_client_gprs_get_iface(struct ipc_client *client, char **iface, int cid); +char* ipc_client_gprs_get_iface(struct ipc_client *client, int cid); int ipc_client_gprs_get_capabilities(struct ipc_client *client, struct ipc_client_gprs_capabilities *cap); int ipc_client_recv(struct ipc_client *client, struct ipc_message_info *response); |