aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/ipc_private.h
diff options
context:
space:
mode:
authorSimon Busch <morphis@gravedo.de>2012-09-05 09:53:36 +0200
committerSimon Busch <morphis@gravedo.de>2012-09-09 12:23:21 +0200
commit3a9c878ca37442aca10917306fffb625c46b0ec4 (patch)
tree0d60e6b6ab27f6e8e7746b3b1abb6f7097f1dc59 /samsung-ipc/ipc_private.h
parentdb180081a182a2cd5652f9b1c147b974bae54811 (diff)
downloadexternal_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 'samsung-ipc/ipc_private.h')
-rw-r--r--samsung-ipc/ipc_private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/samsung-ipc/ipc_private.h b/samsung-ipc/ipc_private.h
index 6c7e0ad..89d60df 100644
--- a/samsung-ipc/ipc_private.h
+++ b/samsung-ipc/ipc_private.h
@@ -63,7 +63,7 @@ struct ipc_handlers {
};
struct ipc_gprs_specs {
- int (*gprs_get_iface)(char **iface, int cid);
+ char* (*gprs_get_iface)(int cid);
int (*gprs_get_capabilities)(struct ipc_client_gprs_capabilities *cap);
};