]> git.ipfire.org Git - thirdparty/systemd.git/commit
proc-cmdline: split out rd. prefix handling in proc_cmdline_parse_given() and proc_cm...
authorLennart Poettering <lennart@poettering.net>
Mon, 12 Nov 2018 11:39:34 +0000 (12:39 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 14 Nov 2018 16:01:54 +0000 (17:01 +0100)
commit1e7a599671ccf1dccd21e02414f515efca069be6
tree37f0055a8bc871e272d96a389bc6c7a1689bf355
parentf6dd5e7c189bf4577541a37e062bd877273823ff
proc-cmdline: split out rd. prefix handling in proc_cmdline_parse_given() and proc_cmdline_get_key()

This introduces a wrapper around extrac_first_word() called
proc_cmdline_extract_first(), which suppresses "rd." parameters
depending on the specified calls.

This allows us to share more code between proc_cmdline_parse_given() and
proc_cmdline_get_key(), and makes it easier to reuse this logic for
other purposes.
src/basic/proc-cmdline.c