1
0
mirror of https://github.com/yarrick/iodine.git synced 2024-11-22 04:56:07 +03:00

Formatting: Fix mixed use of tabs and spaces

This commit is contained in:
Erik Ekman 2020-08-01 17:29:49 +02:00
parent 9a041683be
commit 39356163d9
2 changed files with 7 additions and 7 deletions

View File

@ -1012,7 +1012,7 @@ tunnel_dns(int tun_fd, int dns_fd)
send_something_now = 1; send_something_now = 1;
} }
break; break;
} }
/* NOTE: buf[] was overwritten when down-packet complete */ /* NOTE: buf[] was overwritten when down-packet complete */

View File

@ -851,17 +851,17 @@ handle_null_request(int tun_fd, int dns_fd, struct dnsfd *dns_fds, struct query
#ifdef DNSCACHE_LEN #ifdef DNSCACHE_LEN
{ {
for (i = 0; i < DNSCACHE_LEN; i++) { for (i = 0; i < DNSCACHE_LEN; i++) {
users[userid].dnscache_q[i].id = 0; users[userid].dnscache_q[i].id = 0;
users[userid].dnscache_answerlen[i] = 0; users[userid].dnscache_answerlen[i] = 0;
} }
} }
users[userid].dnscache_lastfilled = 0; users[userid].dnscache_lastfilled = 0;
#endif #endif
for (i = 0; i < QMEMPING_LEN; i++) for (i = 0; i < QMEMPING_LEN; i++)
users[userid].qmemping_type[i] = T_UNSET; users[userid].qmemping_type[i] = T_UNSET;
users[userid].qmemping_lastfilled = 0; users[userid].qmemping_lastfilled = 0;
for (i = 0; i < QMEMDATA_LEN; i++) for (i = 0; i < QMEMDATA_LEN; i++)
users[userid].qmemdata_type[i] = T_UNSET; users[userid].qmemdata_type[i] = T_UNSET;
users[userid].qmemdata_lastfilled = 0; users[userid].qmemdata_lastfilled = 0;
} else { } else {
/* No space for another user */ /* No space for another user */
@ -2591,14 +2591,14 @@ main(int argc, char **argv)
foreground = 1; foreground = 1;
} }
if (addrfamily == AF_UNSPEC || addrfamily == AF_INET) { if (addrfamily == AF_UNSPEC || addrfamily == AF_INET) {
dns4addr_len = get_addr(listen_ip4, port, AF_INET, AI_PASSIVE | AI_NUMERICHOST, &dns4addr); dns4addr_len = get_addr(listen_ip4, port, AF_INET, AI_PASSIVE | AI_NUMERICHOST, &dns4addr);
if (dns4addr_len < 0) { if (dns4addr_len < 0) {
warnx("Bad IPv4 address to listen on."); warnx("Bad IPv4 address to listen on.");
usage(); usage();
} }
} }
if (addrfamily == AF_UNSPEC || addrfamily == AF_INET6) { if (addrfamily == AF_UNSPEC || addrfamily == AF_INET6) {
dns6addr_len = get_addr(listen_ip6, port, AF_INET6, AI_PASSIVE | AI_NUMERICHOST, &dns6addr); dns6addr_len = get_addr(listen_ip6, port, AF_INET6, AI_PASSIVE | AI_NUMERICHOST, &dns6addr);
if (dns6addr_len < 0) { if (dns6addr_len < 0) {
warnx("Bad IPv6 address to listen on."); warnx("Bad IPv6 address to listen on.");
usage(); usage();