]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/import/importd.c
importd: remove IN_SET to avoid ambiguity
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 1 Nov 2017 21:36:02 +0000 (22:36 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 1 Nov 2017 22:09:05 +0000 (23:09 +0100)
commit3dad3203ab872eef263f05bdf551384e91b619ea
tree309009cb1a99e94f2a45b813a6d75c7253a5cce9
parent1d3e682e124c283be367a4db55b73d491eeb48dc
importd: remove IN_SET to avoid ambiguity

clang warns:
../src/import/importd.c:254:70: warning: 'break' is bound to current loop, GCC binds it to the enclosing loop [-Wgcc-compat]
                while ((e < t->log_message + t->log_message_size) && IN_SET(*e, 0, '\n'))
                                                                     ^
Let's just play it safe and not use IN_SET here.
src/import/importd.c