mirror of
https://github.com/Leonmmcoset/cleonos.git
synced 2026-04-27 05:34:00 +00:00
style: auto-format C/C++ sources with clang-format
This commit is contained in:
committed by
github-actions[bot]
parent
2aca4b9e94
commit
c65a92897b
@@ -194,8 +194,8 @@ static int ush_dns_parse_response(const u8 *resp, u64 resp_len, u16 expected_id)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (type == 1U && klass == 1U && rdlen == 4U) {
|
if (type == 1U && klass == 1U && rdlen == 4U) {
|
||||||
u64 ip = ((u64)resp[off] << 24ULL) | ((u64)resp[off + 1ULL] << 16ULL) |
|
u64 ip = ((u64)resp[off] << 24ULL) | ((u64)resp[off + 1ULL] << 16ULL) | ((u64)resp[off + 2ULL] << 8ULL) |
|
||||||
((u64)resp[off + 2ULL] << 8ULL) | (u64)resp[off + 3ULL];
|
(u64)resp[off + 3ULL];
|
||||||
ush_dns_print_ipv4_be(ip);
|
ush_dns_print_ipv4_be(ip);
|
||||||
(void)putchar('\n');
|
(void)putchar('\n');
|
||||||
found++;
|
found++;
|
||||||
|
|||||||
Reference in New Issue
Block a user