mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 16:28:30 +00:00
Make improvements
- Fix unused local variable errors - Remove yoinks from sigaction() header - Add nox87 and aarch64 to github actions - Fix cosmocc -fportcosmo in linking mode - It's now possible to build `make m=llvm o/llvm/libc`
This commit is contained in:
parent
3dc86ce154
commit
f7ae50462a
118 changed files with 342 additions and 392 deletions
|
@ -52,7 +52,6 @@
|
|||
*/
|
||||
int ResolveDns(const struct ResolvConf *resolvconf, int af, const char *name,
|
||||
struct sockaddr *addr, uint32_t addrsize) {
|
||||
int32_t ttl;
|
||||
int rc, fd, n;
|
||||
struct DnsQuestion q;
|
||||
struct DnsHeader h, h2;
|
||||
|
@ -94,7 +93,7 @@ int ResolveDns(const struct ResolvConf *resolvconf, int af, const char *name,
|
|||
if (p + 10 <= pe) {
|
||||
rtype = READ16BE(p);
|
||||
rclass = READ16BE(p + 2);
|
||||
ttl = READ32BE(p + 4);
|
||||
// ttl = READ32BE(p + 4);
|
||||
rdlength = READ16BE(p + 8);
|
||||
if (p + 10 + rdlength <= pe && rdlength == 4 &&
|
||||
rclass == DNS_CLASS_IN && rtype == DNS_TYPE_A) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue