summaryrefslogtreecommitdiff
path: root/src/dnsstub/dns_transmit.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-09 16:05:46 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-09 16:05:46 +0200
commit08ce54211ce4b8d6092321ca1b28773a680ddc45 (patch)
tree9cf7eb2702a408743d59e207e24f8fb1e5ada31d /src/dnsstub/dns_transmit.c
parent795ffc5e62e8ba383575dbcd9943a580d4bd3358 (diff)
Added missing function prototype signatures.
Corrected socket_broadcast name to socket_broadcast4 in socket_if.h. Added const to fmt_str.
Diffstat (limited to 'src/dnsstub/dns_transmit.c')
-rw-r--r--src/dnsstub/dns_transmit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dnsstub/dns_transmit.c b/src/dnsstub/dns_transmit.c
index 96eb38c..bc37791 100644
--- a/src/dnsstub/dns_transmit.c
+++ b/src/dnsstub/dns_transmit.c
@@ -61,7 +61,7 @@ int serverfailed(const char *buf, unsigned int len)
return 0;
}
-int irrelevant(const struct dns_transmit *d, const char *buf, unsigned int len)
+static int irrelevant(const struct dns_transmit *d, const char *buf, unsigned int len)
{
char out[12];
char *dn;
@@ -142,7 +142,7 @@ int randombind4(struct dns_transmit *d)
return DNS_COM;
}
-int thisudp(struct dns_transmit *d)
+static int thisudp(struct dns_transmit *d)
{
const char *ip;
@@ -210,7 +210,7 @@ int nextudp(struct dns_transmit *d)
return thisudp(d);
}
-int thistcp(struct dns_transmit *d)
+static int thistcp(struct dns_transmit *d)
{
struct taia now;
const char *ip;