Skip to content
  • Thomas Haller's avatar
    initrd/tests: cleanup redundant code in "test-cmdline-reader.c" · 4e997d1b
    Thomas Haller authored
    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.
    4e997d1b