提交 6020db50 编写于 作者: W Wolfram Sang 提交者: Masahiro Yamada

modpost: explain why we can't use strsep

Mention why we open-code strsep, so it is clear that it is intentional.

Fixes: 736bb118 ("modpost: remove use of non-standard strsep() in HOSTCC code")
Signed-off-by: NWolfram Sang <wsa@kernel.org>
Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
上级 92ed3019
无相关合并请求
......@@ -144,6 +144,7 @@ char *get_line(char **stringp)
if (!orig || *orig == '\0')
return NULL;
/* don't use strsep here, it is not available everywhere */
next = strchr(orig, '\n');
if (next)
*next++ = '\0';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部