Chomp file ends

Removed empty lines from end of src/*.[ch] files.
If the new last line became '#endif'
was the condition of the '#if' added.
This commit is contained in:
Geert Stappers
2021-04-05 22:42:24 +02:00
committed by Simon Kelley
parent ad90eb075d
commit 3573ca0eec
18 changed files with 7 additions and 57 deletions

View File

@@ -230,5 +230,3 @@ int do_arp_script_run(void)
return 0;
}

View File

@@ -867,6 +867,3 @@ size_t answer_auth(struct dns_header *header, char *limit, size_t qlen, time_t n
}
#endif

View File

@@ -174,4 +174,3 @@ struct blockdata *blockdata_read(int fd, size_t len)
{
return blockdata_alloc_real(fd, NULL, len);
}

View File

@@ -440,5 +440,3 @@ void route_sock(void)
}
#endif /* HAVE_BSD_NETWORK */

View File

@@ -1980,5 +1980,3 @@ void log_query(unsigned int flags, char *name, union all_addr *addr, char *arg)
else
my_syslog(LOG_INFO, "%s %s %s %s", source, name, verb, dest);
}

View File

@@ -447,7 +447,4 @@ static char *compile_opts =
#endif
"dumpfile";
#endif
#endif /* defined(HAVE_DHCP) */

View File

@@ -82,7 +82,4 @@ static int callback(enum nf_conntrack_msg_type type, struct nf_conntrack *ct, vo
return NFCT_CB_CONTINUE;
}
#endif
#endif /* HAVE_CONNTRACK */

View File

@@ -72,4 +72,3 @@
#define DHCP6NOBINDING 3
#define DHCP6NOTONLINK 4
#define DHCP6USEMULTI 5

View File

@@ -825,6 +825,4 @@ void dhcp_construct_contexts(time_t now)
}
}
#endif
#endif /* HAVE_DHCP6 */

View File

@@ -2589,8 +2589,3 @@ static unsigned short get_id(void)
return ret;
}
}

View File

@@ -882,7 +882,4 @@ void helper_write(void)
}
}
#endif
#endif /* HAVE_SCRIPT */

View File

@@ -295,4 +295,3 @@ int inotify_check(time_t now)
}
#endif /* INOTIFY */

View File

@@ -31,4 +31,3 @@
&& ((__const uint32_t *) (a))[1] == 0 \
&& ((__const uint32_t *) (a))[2] == 0 \
&& ((__const uint32_t *) (a))[3] == 0)

View File

@@ -1201,8 +1201,4 @@ void lease_add_extradata(struct dhcp_lease *lease, unsigned char *data, unsigned
}
#endif
#endif
#endif /* HAVE_DHCP */

View File

@@ -402,6 +402,4 @@ static unsigned nl_async(struct nlmsghdr *h, unsigned state)
}
return state;
}
#endif
#endif /* HAVE_LINUX_NETWORK */

View File

@@ -1869,8 +1869,3 @@ void newaddress(time_t now)
lease_find_interfaces(now);
#endif
}

View File

@@ -53,6 +53,3 @@ struct prefix_opt {
#define ICMP6_OPT_RT_INFO 24
#define ICMP6_OPT_RDNSS 25
#define ICMP6_OPT_DNSSL 31

View File

@@ -2785,11 +2785,4 @@ static void apply_delay(u32 xid, time_t recvtime, struct dhcp_netid *netid)
}
}
#endif
#endif /* HAVE_DHCP */