diff options
author | Patrik Flykt <patrik.flykt@linux.intel.com> | 2013-04-23 13:05:31 +0300 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2013-04-26 12:52:22 +0300 |
commit | 2ba573225b59544fab54fb7dcc8d0d46d87991af (patch) | |
tree | 4e1d44b3efc4d286c4adeb36bd4893545dc00a1a | |
parent | 3daea67d91a0c595179f7aac8a031c325d6bd454 (diff) | |
download | connman-2ba573225b59544fab54fb7dcc8d0d46d87991af.tar.gz connman-2ba573225b59544fab54fb7dcc8d0d46d87991af.tar.bz2 connman-2ba573225b59544fab54fb7dcc8d0d46d87991af.zip |
network: Replace connman_uint16_t with uint16_t
-rw-r--r-- | include/network.h | 8 | ||||
-rw-r--r-- | src/network.c | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/include/network.h b/include/network.h index 1eaa91c9..65504935 100644 --- a/include/network.h +++ b/include/network.h @@ -123,11 +123,11 @@ int connman_network_set_strength(struct connman_network *network, uint8_t strength); uint8_t connman_network_get_strength(struct connman_network *network); int connman_network_set_frequency(struct connman_network *network, - connman_uint16_t frequency); -connman_uint16_t connman_network_get_frequency(struct connman_network *network); + uint16_t frequency); +uint16_t connman_network_get_frequency(struct connman_network *network); int connman_network_set_wifi_channel(struct connman_network *network, - connman_uint16_t channel); -connman_uint16_t connman_network_get_wifi_channel(struct connman_network *network); + uint16_t channel); +uint16_t connman_network_get_wifi_channel(struct connman_network *network); int connman_network_set_string(struct connman_network *network, const char *key, const char *value); diff --git a/src/network.c b/src/network.c index 46051997..6a926cbc 100644 --- a/src/network.c +++ b/src/network.c @@ -51,7 +51,7 @@ struct connman_network { connman_bool_t connected; connman_bool_t roaming; uint8_t strength; - connman_uint16_t frequency; + uint16_t frequency; char *identifier; char *name; char *node; @@ -1784,7 +1784,7 @@ uint8_t connman_network_get_strength(struct connman_network *network) } int connman_network_set_frequency(struct connman_network *network, - connman_uint16_t frequency) + uint16_t frequency) { DBG("network %p frequency %d", network, frequency); @@ -1793,13 +1793,13 @@ int connman_network_set_frequency(struct connman_network *network, return 0; } -connman_uint16_t connman_network_get_frequency(struct connman_network *network) +uint16_t connman_network_get_frequency(struct connman_network *network) { return network->frequency; } int connman_network_set_wifi_channel(struct connman_network *network, - connman_uint16_t channel) + uint16_t channel) { DBG("network %p wifi channel %d", network, channel); @@ -1808,7 +1808,7 @@ int connman_network_set_wifi_channel(struct connman_network *network, return 0; } -connman_uint16_t connman_network_get_wifi_channel(struct connman_network *network) +uint16_t connman_network_get_wifi_channel(struct connman_network *network) { return network->wifi.channel; } |