mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +00:00
Perform inconsequential code cleanup
This commit is contained in:
parent
929478c524
commit
decf216655
52 changed files with 326 additions and 442 deletions
|
@ -44,7 +44,7 @@ int ResolveHostsReverse(const struct HostsTxt *ht, int af, const uint8_t *ip,
|
|||
if (af != AF_INET && af != AF_UNSPEC) return eafnosupport();
|
||||
for (i = 0; i < ht->entries.i; ++i) {
|
||||
if (READ32LE(ip) == READ32LE(ht->entries.p[i].ip)) {
|
||||
if (memccpy(buf, ht->strings.p + ht->entries.p[i].name, '\0', bufsize)) {
|
||||
if (memccpy(buf, ht->strings.p + ht->entries.p[i].name, 0, bufsize)) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue