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.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.h')
-rw-r--r-- | src/resolve/resolved.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolved.h b/src/resolve/resolved.h index 0770bb5fce..35ef8bdea1 100644 --- a/src/resolve/resolved.h +++ b/src/resolve/resolved.h @@ -89,12 +89,12 @@ Manager* manager_free(Manager *m); int manager_parse_config_file(Manager *m); int manager_write_resolv_conf(Manager *m); -DnsServer* manager_find_dns_server(Manager *m, unsigned char family, union in_addr_union *in_addr); +DnsServer* manager_find_dns_server(Manager *m, int family, union in_addr_union *in_addr); DnsServer *manager_get_dns_server(Manager *m); void manager_next_dns_server(Manager *m); uint32_t manager_find_mtu(Manager *m); -int manager_send(Manager *m, int fd, int ifindex, unsigned char family, union in_addr_union *addr, uint16_t port, DnsPacket *p); +int manager_send(Manager *m, int fd, int ifindex, int family, union in_addr_union *addr, uint16_t port, DnsPacket *p); int manager_recv(Manager *m, int fd, DnsProtocol protocol, DnsPacket **ret); int manager_dns_ipv4_fd(Manager *m); |