Commit 1e4a2c5e authored by Dave Jones's avatar Dave Jones

[PATCH] strtok->strsep in jfs

parent 19e66287
...@@ -171,9 +171,9 @@ static int parse_options (char * options, struct jfs_sb_info *sbi) ...@@ -171,9 +171,9 @@ static int parse_options (char * options, struct jfs_sb_info *sbi)
if (!options) if (!options)
return 1; return 1;
for (this_char = strtok (options, ","); while ((this_char = strsep (&options, ",")) != NULL) {
this_char != NULL; if (!*this_char)
this_char = strtok (NULL, ",")) { continue;
if ((value = strchr (this_char, '=')) != NULL) if ((value = strchr (this_char, '=')) != NULL)
*value++ = 0; *value++ = 0;
if (!strcmp (this_char, "iocharset")) { if (!strcmp (this_char, "iocharset")) {
......
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