From 3a9c878ca37442aca10917306fffb625c46b0ec4 Mon Sep 17 00:00:00 2001 From: Simon Busch Date: Wed, 5 Sep 2012 09:53:36 +0200 Subject: 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. --- include/radio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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); -- cgit v1.1