diff options
author | Wolfram Sang | 2020-07-26 23:44:19 +0200 |
---|---|---|
committer | Masahiro Yamada | 2020-07-27 13:38:38 +0900 |
commit | 6020db504cece0d93cc31c6f73609ef1304607e2 (patch) | |
tree | 73317ed1a98d96dfd5acb948907fe7478f4aec02 /scripts/mod | |
parent | 92ed301919932f777713b9172e525674157e983d (diff) |
modpost: explain why we can't use strsep
Mention why we open-code strsep, so it is clear that it is intentional.
Fixes: 736bb11898ef ("modpost: remove use of non-standard strsep() in HOSTCC code")
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/mod')
-rw-r--r-- | scripts/mod/modpost.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 45f2ab2ec2d4..69341b36f271 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -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'; |