aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_boot.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2019-04-18 22:52:12 +0000
committerWarner Losh <imp@FreeBSD.org>2019-04-18 22:52:12 +0000
commit2834e42cda22a828d8bdcd3122cb7f57b524dbca (patch)
tree1ea2afb5a9a19516752d40ecd8f63cf79fec4770 /sys/kern/subr_boot.c
parent3782136ff1fc1e076c939246f199e659d950bad5 (diff)
downloadsrc-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.c4
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"));
}
/**