long overdue include cleanup
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include "byte.h"
|
||||
#include <libowfat/byte.h>
|
||||
|
||||
/* byte_chr returns the smallest integer i between 0 and len-1
|
||||
* inclusive such that one[i] equals needle, or len if not found. */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <stdint.h>
|
||||
#include "byte.h"
|
||||
#include <libowfat/byte.h>
|
||||
|
||||
/* byte_copy copies in[0] to out[0], in[1] to out[1], ... and in[len-1]
|
||||
* to out[len-1]. */
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "byte.h"
|
||||
#include <libowfat/byte.h>
|
||||
|
||||
/* byte_copyr copies in[len-1] to out[len-1], in[len-2] to out[len-2],
|
||||
* ... and in[0] to out[0] */
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "byte.h"
|
||||
#include <libowfat/byte.h>
|
||||
|
||||
/* byte_diff returns negative, 0, or positive, depending on whether the
|
||||
* string one[0], one[1], ..., one[len-1] is lexicographically smaller
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "byte.h"
|
||||
#include <libowfat/byte.h>
|
||||
|
||||
/* If you need to compare a password or a hash value, the timing of the
|
||||
* comparison function can give valuable clues to the attacker. Let's
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "byte.h"
|
||||
#include <libowfat/byte.h>
|
||||
|
||||
/* byte_rchr returns the largest integer i between 0 and len-1 inclusive
|
||||
* such that one[i] equals needle, or len if not found. */
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include <byte.h>
|
||||
#include <libowfat/byte.h>
|
||||
#include <string.h>
|
||||
|
||||
int byte_start(const void* a,size_t alen,const void* b,size_t blen) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include <byte.h>
|
||||
#include <libowfat/byte.h>
|
||||
#undef byte_starts
|
||||
#include <string.h>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "byte.h"
|
||||
#include <libowfat/byte.h>
|
||||
#include <string.h>
|
||||
|
||||
/* byte_zero sets the bytes out[0], out[1], ..., out[len-1] to 0 */
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "cdb.h"
|
||||
#include "havepread.h"
|
||||
#ifdef __MINGW32__
|
||||
#include "windows.h"
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "cdb.h"
|
||||
#include "cdb_make.h"
|
||||
#ifdef __MINGW32__
|
||||
#include "windows.h"
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
int cdb_make_start(struct cdb_make *c,int64 fd) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include "byte.h"
|
||||
#include "dns.h"
|
||||
#include <libowfat/byte.h>
|
||||
#include <libowfat/dns.h>
|
||||
|
||||
int dns_domain_fromdot(char **out,const char *buf,size_t n)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <stdlib.h>
|
||||
#include "case.h"
|
||||
#include "byte.h"
|
||||
#include "dns.h"
|
||||
#include <libowfat/case.h>
|
||||
#include <libowfat/byte.h>
|
||||
#include <libowfat/dns.h>
|
||||
|
||||
unsigned int dns_domain_length(const char *dn)
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "stralloc.h"
|
||||
#include "dns.h"
|
||||
#include <libowfat/stralloc.h>
|
||||
#include <libowfat/dns.h>
|
||||
|
||||
int dns_domain_todot_cat(stralloc *out,const char *d)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "stralloc.h"
|
||||
#include "uint16.h"
|
||||
#include "byte.h"
|
||||
#include "dns.h"
|
||||
#include <libowfat/stralloc.h>
|
||||
#include <libowfat/uint16.h>
|
||||
#include <libowfat/byte.h>
|
||||
#include <libowfat/dns.h>
|
||||
|
||||
int dns_ip4_packet(stralloc *out,const char *buf,unsigned int len)
|
||||
{
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
#include "stralloc.h"
|
||||
#include "uint16.h"
|
||||
#include "byte.h"
|
||||
#include "dns.h"
|
||||
#include "ip4.h"
|
||||
#include "ip6.h"
|
||||
#include <libowfat/stralloc.h>
|
||||
#include <libowfat/uint16.h>
|
||||
#include <libowfat/byte.h>
|
||||
#include <libowfat/dns.h>
|
||||
#include <libowfat/ip6.h>
|
||||
|
||||
static int dns_ip6_packet_add(stralloc *out,const char *buf,unsigned int len)
|
||||
{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#include "stralloc.h"
|
||||
#include "case.h"
|
||||
#include "byte.h"
|
||||
#include "str.h"
|
||||
#include "dns.h"
|
||||
#include <libowfat/stralloc.h>
|
||||
#include <libowfat/case.h>
|
||||
#include <libowfat/byte.h>
|
||||
#include <libowfat/str.h>
|
||||
#include <libowfat/dns.h>
|
||||
|
||||
static int doit(stralloc *work,const char *rule)
|
||||
{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#include "stralloc.h"
|
||||
#include "case.h"
|
||||
#include "byte.h"
|
||||
#include "str.h"
|
||||
#include "dns.h"
|
||||
#include <libowfat/stralloc.h>
|
||||
#include <libowfat/case.h>
|
||||
#include <libowfat/byte.h>
|
||||
#include <libowfat/str.h>
|
||||
#include <libowfat/dns.h>
|
||||
|
||||
static int doit(stralloc *work,const char *rule)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "stralloc.h"
|
||||
#include "byte.h"
|
||||
#include "uint16.h"
|
||||
#include "dns.h"
|
||||
#include <libowfat/stralloc.h>
|
||||
#include <libowfat/byte.h>
|
||||
#include <libowfat/uint16.h>
|
||||
#include <libowfat/dns.h>
|
||||
|
||||
static char *q = 0;
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#include "stralloc.h"
|
||||
#include "uint16.h"
|
||||
#include "byte.h"
|
||||
#include "dns.h"
|
||||
#include "ip6.h"
|
||||
#include <libowfat/stralloc.h>
|
||||
#include <libowfat/uint16.h>
|
||||
#include <libowfat/byte.h>
|
||||
#include <libowfat/dns.h>
|
||||
#include <libowfat/ip6.h>
|
||||
|
||||
static char *q = 0;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "byte.h"
|
||||
#include "fmt.h"
|
||||
#include "dns.h"
|
||||
#include <libowfat/byte.h>
|
||||
#include <libowfat/fmt.h>
|
||||
#include <libowfat/dns.h>
|
||||
|
||||
void dns_name4_domain(char name[DNS_NAME4_DOMAIN],const char ip[4])
|
||||
{
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "byte.h"
|
||||
#include "fmt.h"
|
||||
#include "dns.h"
|
||||
#include <libowfat/byte.h>
|
||||
#include <libowfat/dns.h>
|
||||
#include "haveinline.h"
|
||||
|
||||
/* RFC1886:
|
||||
|
||||
@@ -3,7 +3,7 @@ DNS should have used LZ77 instead of its own sophomoric compression algorithm.
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include "dns.h"
|
||||
#include <libowfat/dns.h>
|
||||
|
||||
unsigned int dns_packet_copy(const char *buf,unsigned int len,unsigned int pos,char *out,unsigned int outlen)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <unistd.h>
|
||||
#include "dns.h"
|
||||
#include "taia.h"
|
||||
#include "uint32.h"
|
||||
#include <libowfat/dns.h>
|
||||
#include <libowfat/taia.h>
|
||||
#include <libowfat/uint32.h>
|
||||
|
||||
static uint32 seed[32];
|
||||
static uint32 in[12];
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
#include <stdlib.h>
|
||||
#include "taia.h"
|
||||
#include "openreadclose.h"
|
||||
#include "byte.h"
|
||||
#include "ip4.h"
|
||||
#include "ip6.h"
|
||||
#include "dns.h"
|
||||
#include <libowfat/taia.h>
|
||||
#include <libowfat/openreadclose.h>
|
||||
#include <libowfat/byte.h>
|
||||
#include <libowfat/ip6.h>
|
||||
#include <libowfat/dns.h>
|
||||
|
||||
static stralloc data;
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include "taia.h"
|
||||
#include "byte.h"
|
||||
#include "str.h"
|
||||
#include "openreadclose.h"
|
||||
#include "dns.h"
|
||||
#include <libowfat/taia.h>
|
||||
#include <libowfat/byte.h>
|
||||
#include <libowfat/str.h>
|
||||
#include <libowfat/openreadclose.h>
|
||||
#include <libowfat/dns.h>
|
||||
#ifdef __MINGW32__
|
||||
#include <winsock2.h>
|
||||
#include <windows.h>
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#include "iopause.h"
|
||||
#include "taia.h"
|
||||
#include "byte.h"
|
||||
#include "dns.h"
|
||||
#include "ip6.h"
|
||||
#include <libowfat/iopause.h>
|
||||
#include <libowfat/taia.h>
|
||||
#include <libowfat/dns.h>
|
||||
#include <libowfat/ip6.h>
|
||||
|
||||
struct dns_transmit dns_resolve_tx;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "byte.h"
|
||||
#include "dns.h"
|
||||
#include <libowfat/byte.h>
|
||||
#include <libowfat/dns.h>
|
||||
|
||||
/* XXX: sort servers by configurable notion of closeness? */
|
||||
/* XXX: pay attention to competence of each server? */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "byte.h"
|
||||
#include "dns.h"
|
||||
#include <libowfat/byte.h>
|
||||
#include <libowfat/dns.h>
|
||||
|
||||
/* XXX: sort servers by configurable notion of closeness? */
|
||||
/* XXX: pay attention to competence of each server? */
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include "socket.h"
|
||||
#include <errno.h>
|
||||
#include "byte.h"
|
||||
#include "uint16.h"
|
||||
#include "dns.h"
|
||||
#include "ip6.h"
|
||||
#include <libowfat/socket.h>
|
||||
#include <libowfat/byte.h>
|
||||
#include <libowfat/uint16.h>
|
||||
#include <libowfat/dns.h>
|
||||
#include <libowfat/ip6.h>
|
||||
|
||||
static int serverwantstcp(const char *buf,unsigned int len)
|
||||
{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#include <errno.h>
|
||||
#include "stralloc.h"
|
||||
#include "uint16.h"
|
||||
#include "byte.h"
|
||||
#include "dns.h"
|
||||
#include <libowfat/stralloc.h>
|
||||
#include <libowfat/uint16.h>
|
||||
#include <libowfat/byte.h>
|
||||
#include <libowfat/dns.h>
|
||||
|
||||
int dns_txt_packet(stralloc *out,const char *buf,unsigned int len)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user