diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-18 16:09:30 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-18 16:10:51 +0200 |
commit | 0dd25fb9f005d8ab7ac4bc10a609d00569f8c56a (patch) | |
tree | 2f253672d8a0a97c8c19ba1ce2cad26a5bef62a8 /src/resolve/resolved-link.h | |
parent | f41925b4e442a34c93ad120ef1426c974a047ed1 (diff) |
change type for address family to "int"
Let's settle on a single type for all address family values, even if
UNIX is very inconsitent on the precise type otherwise. Given that
socket() is the primary entrypoint for the sockets API, and that uses
"int", and "int" is relatively simple and generic, we settle on "int"
for this.
Diffstat (limited to 'src/resolve/resolved-link.h')
-rw-r--r-- | src/resolve/resolved-link.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/resolve/resolved-link.h b/src/resolve/resolved-link.h index d4e5c0a00d..bd32a702fc 100644 --- a/src/resolve/resolved-link.h +++ b/src/resolve/resolved-link.h @@ -36,7 +36,7 @@ typedef struct LinkAddress LinkAddress; struct LinkAddress { Link *link; - unsigned char family; + int family; union in_addr_union in_addr; unsigned char flags, scope; @@ -71,14 +71,14 @@ int link_new(Manager *m, Link **ret, int ifindex); Link *link_free(Link *l); int link_update_rtnl(Link *l, sd_rtnl_message *m); int link_update_monitor(Link *l); -bool link_relevant(Link *l, unsigned char family); -LinkAddress* link_find_address(Link *l, unsigned char family, union in_addr_union *in_addr); +bool link_relevant(Link *l, int family); +LinkAddress* link_find_address(Link *l, int family, union in_addr_union *in_addr); -DnsServer* link_find_dns_server(Link *l, DnsServerSource source, unsigned char family, union in_addr_union *in_addr); +DnsServer* link_find_dns_server(Link *l, DnsServerSource source, int family, union in_addr_union *in_addr); DnsServer* link_get_dns_server(Link *l); void link_next_dns_server(Link *l); -int link_address_new(Link *l, LinkAddress **ret, unsigned char family, union in_addr_union *in_addr); +int link_address_new(Link *l, LinkAddress **ret, int family, union in_addr_union *in_addr); LinkAddress *link_address_free(LinkAddress *a); int link_address_update_rtnl(LinkAddress *a, sd_rtnl_message *m); bool link_address_relevant(LinkAddress *l); |