summaryrefslogtreecommitdiff
path: root/src/timeserver.c
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2012-04-27 17:33:17 +0300
committerMarcel Holtmann <marcel@holtmann.org>2012-04-27 16:45:01 +0200
commit1d2fc4e1c652fa4b2385b2893d844fc4648c6762 (patch)
treec73c7868e7dfc8f3c37916a9a0e7c8319ef9fa62 /src/timeserver.c
parentb9d16f7fe9c5f42cd14b5839a81deae3ccd94c14 (diff)
downloadconnman-1d2fc4e1c652fa4b2385b2893d844fc4648c6762.tar.gz
connman-1d2fc4e1c652fa4b2385b2893d844fc4648c6762.tar.bz2
connman-1d2fc4e1c652fa4b2385b2893d844fc4648c6762.zip
ipconfig: Add ipconfig type to __connman_ipconfig_get_gateway_from_index()
In order to be able to request a certain ipconfig type, add the type as a parameter to __connman_ipconfig_get_gateway_from_index().
Diffstat (limited to 'src/timeserver.c')
-rw-r--r--src/timeserver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/timeserver.c b/src/timeserver.c
index a821e2a1..a5e8e9eb 100644
--- a/src/timeserver.c
+++ b/src/timeserver.c
@@ -188,7 +188,8 @@ GSList *__connman_timeserver_get_all(struct connman_service *service)
network = __connman_service_get_network(service);
if (network != NULL) {
index = connman_network_get_index(network);
- service_gw = __connman_ipconfig_get_gateway_from_index(index);
+ service_gw = __connman_ipconfig_get_gateway_from_index(index,
+ CONNMAN_IPCONFIG_TYPE_ALL);
/* Then add Service Gateway to the list */
if (service_gw != NULL)