Date: Thu, 18 Apr 2019 22:52:12 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r346359 - head/sys/kern Message-ID: <201904182252.x3IMqC53040413@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Thu Apr 18 22:52:12 2019 New Revision: 346359 URL: https://svnweb.freebsd.org/changeset/base/346359 Log: 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. Modified: head/sys/kern/subr_boot.c Modified: head/sys/kern/subr_boot.c ============================================================================== --- head/sys/kern/subr_boot.c Thu Apr 18 20:48:54 2019 (r346358) +++ head/sys/kern/subr_boot.c Thu Apr 18 22:52:12 2019 (r346359) @@ -199,13 +199,13 @@ boot_parse_cmdline_delim(char *cmdline, const char *de } /** - * @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")); } /**
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904182252.x3IMqC53040413>