]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/resolve/resolved-dns-scope.c
Rename ratelimit_test to ratelimit_below
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 11 May 2018 09:16:52 +0000 (11:16 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 13 May 2018 20:08:30 +0000 (22:08 +0200)
commit7994ac1d851b39ee87181fbdbfe413f83f65260a
tree2ff5d4c638a5e42d624afff22b81ead090e76237
parent22dd8d350c635fb2ccd4641d19cf43f73cae4f6d
Rename ratelimit_test to ratelimit_below

When I see "test", I have to think three times what the return value
means. With "below" this is immediately clear. ratelimit_below(&limit)
sounds almost like English and is imho immediately obvious.

(I also considered ratelimit_ok, but this strongly implies that being under the
limit is somehow better. Most of the times this is true, but then we use the
ratelimit to detect triple-c-a-d, and "ok" doesn't fit so well there.)

C.f. a1bcaa07.
14 files changed:
src/basic/ratelimit.c
src/basic/ratelimit.h
src/core/device.c
src/core/manager.c
src/core/socket.c
src/core/unit.c
src/import/export-raw.c
src/import/export-tar.c
src/import/import-raw.c
src/import/import-tar.c
src/resolve/resolved-dns-scope.c
src/resolve/resolved-mdns.c
src/test/test-ratelimit.c
src/timesync/timesyncd-manager.c