chiark / gitweb /
strv: multiple cleanups
authorSimon Peeters <peeters.simon@gmail.com>
Sat, 4 Jan 2014 01:35:27 +0000 (02:35 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 5 Jan 2014 14:16:15 +0000 (09:16 -0500)
commite3e45d4f82daa5cd85ba40dde9127df900096c0c
tree307e427adfd64298ff3f21f6c6fd97aca1e17d42
parentbf85c24daaf63f72562bbe4c627ca8b963dfb964
strv: multiple cleanups

- turn strv_merge into strv_extend_strv.
   appending strv b to the end of strv a instead of creating a new strv
- strv_append: remove in favor of strv_extend and strv_push.
- strv_remove: write slightly more elegant
- strv_remove_prefix: remove unused function
- strv_overlap: use strv_contains
- strv_printf: STRV_FOREACH handles NULL correctly
src/core/main.c
src/modules-load/modules-load.c
src/shared/path-lookup.c
src/shared/strv.c
src/shared/strv.h
src/sysctl/sysctl.c
src/systemctl/systemctl.c
src/test/test-strv.c