From: Patrik Flykt Date: Tue, 23 Apr 2013 10:05:31 +0000 (+0300) Subject: network: Replace connman_uint16_t with uint16_t X-Git-Tag: 1.14~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ba573225b59544fab54fb7dcc8d0d46d87991af;p=platform%2Fupstream%2Fconnman.git network: Replace connman_uint16_t with uint16_t --- diff --git a/include/network.h b/include/network.h index 1eaa91c..6550493 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 4605199..6a926cb 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; }