Commit 6020db50 authored by Wolfram Sang's avatar Wolfram Sang Committed by 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: default avatarWolfram Sang <wsa@kernel.org>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 92ed3019
...@@ -144,6 +144,7 @@ char *get_line(char **stringp) ...@@ -144,6 +144,7 @@ char *get_line(char **stringp)
if (!orig || *orig == '\0') if (!orig || *orig == '\0')
return NULL; return NULL;
/* don't use strsep here, it is not available everywhere */
next = strchr(orig, '\n'); next = strchr(orig, '\n');
if (next) if (next)
*next++ = '\0'; *next++ = '\0';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment