diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-01-16 00:13:38 +0100 |
---|---|---|
committer | Adrian Szyndela <adrian.s@samsung.com> | 2020-02-26 11:39:00 +0100 |
commit | 71dda51708c0f9cafff337fda0a02322981dc48c (patch) | |
tree | a14597ecdddbca81eefef94e0963c0f42f22cc72 /src/locale | |
parent | 7d0be1e0f8a2a104464778ee36cd56e373784d15 (diff) | |
download | systemd-71dda51708c0f9cafff337fda0a02322981dc48c.tar.gz systemd-71dda51708c0f9cafff337fda0a02322981dc48c.tar.bz2 systemd-71dda51708c0f9cafff337fda0a02322981dc48c.zip |
(backport) strv: rework FOREACH_STRING() macrosandbox/adrians/upgrade-to-234
So it's apparently problematic that we use STRV_MAKE() (i.e. a compound
initializer) outside of the {} block we use it in (and that includes
outside of the ({}) block, too). Hence, let's rework the macro to not
need that.
This also makes the macro shorter, which is definitely a good and more
readable. Moreover, it will now complain if the iterator is a "char*"
instead of a "const char*", which is good too.
Fixes: #11394
Change-Id: Ibc21cdd5583c3b6a079b8691bbac5e076819432a
Diffstat (limited to 'src/locale')
0 files changed, 0 insertions, 0 deletions