basic/proc-cmdline: allow parsing of cmdline from a string
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 26 Sep 2018 07:29:09 +0000 (09:29 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 8 Oct 2018 15:05:19 +0000 (17:05 +0200)
commit9a135c084ae6d06734ec3380f0eafdecd7c216f8
tree437788e57b26e66d6df2325c5d782ca171c4691d
parent1af294fc82059975ce5f8f566a21385245773a59
basic/proc-cmdline: allow parsing of cmdline from a string

Comes with tests.

Also add direct test for $SYSTEMD_PROC_CMDLINE.

In test-proc-cmdline, "true" was masquerading as PROC_CMDLINE_STRIP_RD_PREFIX,
fix that. Also, reorder functions to match call order.
src/basic/proc-cmdline.c
src/basic/proc-cmdline.h
src/test/test-proc-cmdline.c