diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-08 13:24:39 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-08 13:24:39 +0200 |
commit | 973ae30e7c4f7a1afb385dd3d8eeea178f981445 (patch) | |
tree | 1a5d8be5b3ff273a141b6144bf3031b1bc3deb2d /src/dns.c | |
parent | 66404f0bfbd78e635ff6381ca30b25157e0e1a09 (diff) |
fix deprecated prototypes
Diffstat (limited to 'src/dns.c')
-rw-r--r-- | src/dns.c | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -7,14 +7,7 @@ #include <sys/socket.h> #include <sys/types.h> -#include <string.h> - #include "alloc.h" -#include "buffer.h" -#include "case.h" -#include "dnsresolv.h" -#include "exit.h" -#include "fmt.h" #include "ip.h" #include "str.h" #include "stralloc.h" @@ -80,8 +73,9 @@ static int dns_ipplus(ipalloc *ia, stralloc *sa, int pref) } error = 0; } - } else + } else { error = 1; + } /* Case 4: sa is fqdn and looking for IPv4 */ @@ -97,13 +91,14 @@ static int dns_ipplus(ipalloc *ia, stralloc *sa, int pref) } error = 0; } - } else + } else { error += 2; + } return error; } -int dns_ipalloc(ipalloc *ia, stralloc *sa) +static int dns_ipalloc(ipalloc *ia, stralloc *sa) { if (!ipalloc_readyplus(ia, 0)) return DNS_MEM; ia->len = 0; |