From a43d648b95923895353fa2bb531c260a99885fda Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 14 Mar 2019 19:42:28 +1100 Subject: [PATCH] isc_quota_* return unsigned int --- bin/named/server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/named/server.c b/bin/named/server.c index 9bbcd1791d..76d037b812 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -11479,13 +11479,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));