mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 19:19:59 -04:00
Merge branch '938-cppcheck-format-issues-v9_14' into 'v9_14'
Resolve "Cppcheck format issues." See merge request isc-projects/bind9!1695
This commit is contained in:
commit
3123d8714f
2 changed files with 6 additions and 6 deletions
|
|
@ -11481,13 +11481,13 @@ named_server_status(named_server_t *server, isc_buffer_t **text) {
|
|||
? "ON" : "OFF");
|
||||
CHECK(putstr(text, line));
|
||||
|
||||
snprintf(line, sizeof(line), "recursive clients: %d/%d/%d\n",
|
||||
snprintf(line, sizeof(line), "recursive clients: %u/%u/%u\n",
|
||||
isc_quota_getused(&server->sctx->recursionquota),
|
||||
isc_quota_getsoft(&server->sctx->recursionquota),
|
||||
isc_quota_getmax(&server->sctx->recursionquota));
|
||||
CHECK(putstr(text, line));
|
||||
|
||||
snprintf(line, sizeof(line), "tcp clients: %d/%d\n",
|
||||
snprintf(line, sizeof(line), "tcp clients: %u/%u\n",
|
||||
isc_quota_getused(&server->sctx->tcpquota),
|
||||
isc_quota_getmax(&server->sctx->tcpquota));
|
||||
CHECK(putstr(text, line));
|
||||
|
|
|
|||
|
|
@ -67,10 +67,10 @@ dns_byaddr_createptrname(const isc_netaddr_t *address, unsigned int options,
|
|||
if (address->family == AF_INET) {
|
||||
(void)snprintf(textname, sizeof(textname),
|
||||
"%u.%u.%u.%u.in-addr.arpa.",
|
||||
(bytes[3] & 0xffU),
|
||||
(bytes[2] & 0xffU),
|
||||
(bytes[1] & 0xffU),
|
||||
(bytes[0] & 0xffU));
|
||||
((unsigned int)bytes[3] & 0xffU),
|
||||
((unsigned int)bytes[2] & 0xffU),
|
||||
((unsigned int)bytes[1] & 0xffU),
|
||||
((unsigned int)bytes[0] & 0xffU));
|
||||
} else if (address->family == AF_INET6) {
|
||||
size_t remaining;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue