diff options
author | Warner Losh <imp@FreeBSD.org> | 2019-04-18 22:52:12 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2019-04-18 22:52:12 +0000 |
commit | 2834e42cda22a828d8bdcd3122cb7f57b524dbca (patch) | |
tree | 1ea2afb5a9a19516752d40ecd8f63cf79fec4770 /sys/kern/subr_boot.c | |
parent | 3782136ff1fc1e076c939246f199e659d950bad5 (diff) | |
download | src-2834e42cda22a828d8bdcd3122cb7f57b524dbca.tar.gz src-2834e42cda22a828d8bdcd3122cb7f57b524dbca.zip |
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.
Notes
Notes:
svn path=/head/; revision=346359
Diffstat (limited to 'sys/kern/subr_boot.c')
-rw-r--r-- | sys/kern/subr_boot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_boot.c b/sys/kern/subr_boot.c index 4aa135df5c83..82dd4195edfd 100644 --- a/sys/kern/subr_boot.c +++ b/sys/kern/subr_boot.c @@ -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")); } /** |