When parsing command line stuff, treat tabs and spaces the same.

When creating complex config files, people like to use tabs to offset
sections. Treat them the same as spaces for delimiters.
This commit is contained in:
Warner Losh 2019-04-18 22:52:12 +00:00
parent 3782136ff1
commit 2834e42cda
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=346359

View File

@ -199,13 +199,13 @@ boot_parse_cmdline_delim(char *cmdline, const char *delim)
}
/**
* @brief Simplified interface for common 'space separated' args
* @brief Simplified interface for common 'space or tab separated' args
*/
int
boot_parse_cmdline(char *cmdline)
{
return (boot_parse_cmdline_delim(cmdline, " \n"));
return (boot_parse_cmdline_delim(cmdline, " \t\n"));
}
/**