scripts/mod/sumversion.c: replace strtok() with
PATCH 1/1 scripts/mod/sumversion.c: replace strtok() with
* Nicolas Kaiser <[email protected]>:
Quoted 3 lines
http://janitor.kernelnewbies.org/docs/driver-howto.html#3.3.1
Did I miss anything?
Actually, I did miss something. Here comes an update.
Did I miss anything else?
Cheers,
n.
Description: Replaces strtok() with strsep()
Signed-off-by Nicolas Kaiser <[email protected]>
mod/sumversion.c renamed from mod/sumversion.c.orig +3 -1
@@ -419,7 +419,9 @@ *end ='\0' ;md4_init (&md); -for (fname =strtok (sources," " ); fname; fname =strtok (NULL ," " )) { +while ((fname =strsep (&sources," " )) !=NULL ) { +if (!*fname) +continue ;if (!parse_source_files (fname, &md)) goto release; }
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors