loop-write: do strlen() implicitly if size is specified as SIZE_MAX
authorLennart Poettering <lennart@poettering.net>
Wed, 12 Jul 2023 20:29:17 +0000 (22:29 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 13 Jul 2023 00:59:28 +0000 (09:59 +0900)
commitd89457a1454eb179b3630c38d91e661976a60997
treeff0b36388bb95888adde861d1d677c4979c98e94
parentfc4a7f13bb95598104e8bdf62090a989a6cbc036
loop-write: do strlen() implicitly if size is specified as SIZE_MAX

This reduces repetition in the function calls, since quite often we
write out strings with loop_write().

Noticed while reviewing #28077.
src/basic/io-util.c
src/shared/ask-password-api.c
src/shared/machine-id-setup.c
src/vconsole/vconsole-setup.c