clientlog: return enum from CLG_LimitServiceRate()

Change CLG_LimitServiceRate() to return an enum in preparation for
adding KoD RATE support.
This commit is contained in:
Miroslav Lichvar
2024-04-02 11:37:39 +02:00
parent ce956c99a8
commit c8c7f518b1
6 changed files with 20 additions and 12 deletions

View File

@@ -86,7 +86,7 @@ test_unit(void)
ts.tv_sec += 1;
index = CLG_LogServiceAccess(s, &ip, &ts);
TEST_CHECK(index >= 0);
if (!CLG_LimitServiceRate(s, index))
if (CLG_LimitServiceRate(s, index) == CLG_PASS)
j++;
}