Commit d940e952 authored by Ondřej Surý's avatar Ondřej Surý Committed by Witold Krecicki
Browse files

isc_quota_init now returns 'void'

parent b7a15a5d
......@@ -48,14 +48,10 @@ struct isc_quota {
int soft;
};
isc_result_t
void
isc_quota_init(isc_quota_t *quota, int max);
/*%<
* Initialize a quota object.
*
* Returns:
* ISC_R_SUCCESS
* Other error Lock creation failed.
*/
void
......
......@@ -19,14 +19,12 @@
#include <isc/quota.h>
#include <isc/util.h>
isc_result_t
void
isc_quota_init(isc_quota_t *quota, int max) {
quota->max = max;
quota->used = 0;
quota->soft = 0;
isc_mutex_init(&quota->lock);
/* XXXOND: Todo make return void */
return (ISC_R_SUCCESS);
}
void
......
......@@ -52,9 +52,9 @@ ns_server_create(isc_mem_t *mctx, ns_matchview_t matchingview,
isc_refcount_init(&sctx->references, 1);
CHECKFATAL(isc_quota_init(&sctx->xfroutquota, 10));
CHECKFATAL(isc_quota_init(&sctx->tcpquota, 10));
CHECKFATAL(isc_quota_init(&sctx->recursionquota, 100));
isc_quota_init(&sctx->xfroutquota, 10);
isc_quota_init(&sctx->tcpquota, 10);
isc_quota_init(&sctx->recursionquota, 100);
CHECKFATAL(dns_tkeyctx_create(mctx, &sctx->tkeyctx));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment