From e06c7eeb845da73eac03dc35018bbf279ddd42ad Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 16 Feb 2015 10:42:16 +0100 Subject: all: Remove trailing whitespaces Signed-off-by: Tobias Klauser --- iface.c | 2 +- llmnr.c | 10 +++++----- socket.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/iface.c b/iface.c index c3939a8..86d0f06 100644 --- a/iface.c +++ b/iface.c @@ -52,7 +52,7 @@ struct iface_record { static struct list_head iface_list_head; static pthread_mutex_t iface_list_mutex; -size_t iface_addr_lookup(unsigned int ifindex, unsigned char family, +size_t iface_addr_lookup(unsigned int ifindex, unsigned char family, struct sockaddr_storage *addrs, size_t addrs_size) { struct iface_record *rec; diff --git a/llmnr.c b/llmnr.c index 4029efb..8b5b387 100644 --- a/llmnr.c +++ b/llmnr.c @@ -81,7 +81,7 @@ static void llmnr_respond(unsigned int ifindex, const struct llmnr_hdr *hdr, if (qclass == LLMNR_QCLASS_IN) { size_t i, n, response_len; unsigned char family = AF_UNSPEC; - /* + /* * arbitrary restriction to 16 addresses per interface for the * sake of a simple, atomic interface */ @@ -108,7 +108,7 @@ static void llmnr_respond(unsigned int ifindex, const struct llmnr_hdr *hdr, log_info("Responding with %zu addresses\n", n); - /* + /* * This is the max response length (i.e. using all IPv6 * addresses). We might not use all of it. */ @@ -132,7 +132,7 @@ static void llmnr_respond(unsigned int ifindex, const struct llmnr_hdr *hdr, for (i = 0; i < n; i++) { void *addr; size_t addr_size; - + if (addrs[i].ss_family == AF_INET) { struct sockaddr_in *sin = (struct sockaddr_in *)&addrs[i]; addr = &sin->sin_addr; @@ -146,7 +146,7 @@ static void llmnr_respond(unsigned int ifindex, const struct llmnr_hdr *hdr, continue; } - /* + /* * NAME * * TODO: Implement message compression (RFC 1035, @@ -186,7 +186,7 @@ static void llmnr_packet_process(unsigned int ifindex, const uint8_t *pktbuf, si const uint8_t *query; size_t query_len; uint8_t name_len; - + if (sa->sa_family == AF_INET) addr = &((const struct sockaddr_in *)sa)->sin_addr; else if (sa->sa_family == AF_INET6) diff --git a/socket.c b/socket.c index e00742f..6ecc447 100644 --- a/socket.c +++ b/socket.c @@ -99,7 +99,7 @@ int socket_open_rtnl(void) memset(&sa, 0, sizeof(sa)); sa.nl_family = AF_NETLINK; - /* + /* * listen for following events: * - network interface create/delete/up/down * - IPv4 address add/delete -- cgit v1.2.3-54-g00ecf