strv: add helper to extend strv from both sides
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 22 Feb 2024 09:47:23 +0000 (10:47 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Mar 2024 17:49:44 +0000 (18:49 +0100)
commit9bc7493098a9b2cfc044e07be6d2690a2be99e13
tree903a07abd1e6b1a8fd8685c04f400e1359a0797a
parent4bf32eac522bb813ff56ef0bf0565d7ffd583b69
strv: add helper to extend strv from both sides

Also, use the more correct type of 'const char* const*' for the input strv.
This requires adding the cast in a few places, but also allows to remove some
casts in others.
src/basic/conf-files.c
src/basic/path-lookup.c
src/basic/strv.c
src/basic/strv.h
src/test/test-strv.c
src/tmpfiles/tmpfiles.c
src/xdg-autostart-generator/xdg-autostart-generator.c