Skip to content

Commit 6020db5

Browse files
wsakernelmasahir0y
authored andcommitted
modpost: explain why we can't use strsep
Mention why we open-code strsep, so it is clear that it is intentional. Fixes: 736bb11 ("modpost: remove use of non-standard strsep() in HOSTCC code") Signed-off-by: Wolfram Sang <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 92ed301 commit 6020db5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/mod/modpost.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ char *get_line(char **stringp)
144144
if (!orig || *orig == '\0')
145145
return NULL;
146146

147+
/* don't use strsep here, it is not available everywhere */
147148
next = strchr(orig, '\n');
148149
if (next)
149150
*next++ = '\0';

0 commit comments

Comments
 (0)