mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 10:40:11 +01:00
initrd/tests: cleanup redundant code in "test-cmdline-reader.c"
Add _parse(), _parse_cons() and _parse_con() helper macros. These already perform assertions that are common in those cases, and thus reduce a lot of boiler plate code. Also, _parse_cons() is exactly about parsing connections. The next time we add an out parameter to nmi_cmdline_reader_parse() we won't have to adjust all the call sites where this parameter doesn't matter.
This commit is contained in:
parent
e300138892
commit
4e997d1b36
1 changed files with 172 additions and 460 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue