diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2011-04-15 19:50:51 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-04-17 17:25:41 +0200 |
commit | f812fce3e6ae032e5d2548d810a335b5f0e43b22 (patch) | |
tree | a2a6b8f843c1fde32d32c79755a86969ce1f1e16 /src/ipconfig.c | |
parent | fcc6877521b79609c1d09f3d96ddeab9fc73624c (diff) | |
download | connman-f812fce3e6ae032e5d2548d810a335b5f0e43b22.tar.gz connman-f812fce3e6ae032e5d2548d810a335b5f0e43b22.tar.bz2 connman-f812fce3e6ae032e5d2548d810a335b5f0e43b22.zip |
ipconfig: Fix connman_ipaddress_set_ipv6 prototype
Switch the gateway and prefix_length order to be consistent with the ipv4
version.
Diffstat (limited to 'src/ipconfig.c')
-rw-r--r-- | src/ipconfig.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ipconfig.c b/src/ipconfig.c index 22dd03bc..92ac8f68 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -153,8 +153,9 @@ static gboolean check_ipv6_address(const char *address) } int connman_ipaddress_set_ipv6(struct connman_ipaddress *ipaddress, - const char *address, const char *gateway, - unsigned char prefix_length) + const char *address, + unsigned char prefix_length, + const char *gateway) { if (ipaddress == NULL) return -EINVAL; @@ -1947,7 +1948,7 @@ int __connman_ipconfig_set_config(struct connman_ipconfig *ipconfig, else return connman_ipaddress_set_ipv6( ipconfig->address, address, - gateway, prefix_length); + prefix_length, gateway); break; case CONNMAN_IPCONFIG_METHOD_DHCP: |