]> git.hungrycats.org Git - linux/commitdiff
[PATCH] strtok->strsep for reiserfs
authorDave Jones <davej@suse.de>
Wed, 3 Apr 2002 03:57:42 +0000 (19:57 -0800)
committerDave Jones <davej@suse.de>
Wed, 3 Apr 2002 03:57:42 +0000 (19:57 -0800)
fs/reiserfs/super.c

index 9cfe3c98ef77da5d5d0070de2661223c2b0cb446..4698081c8d34232c748a292ae3df940477f72ff7 100644 (file)
@@ -508,7 +508,9 @@ static int parse_options (char * options, unsigned long * mount_options, unsigne
        /* use default configuration: create tails, journaling on, no
            conversion to newest format */
        return 1;
-    for (this_char = strtok (options, ","); this_char != NULL; this_char = strtok (NULL, ",")) {
+    while ((this_char = strsep (&options, ",")) != NULL) {
+       if (!*this_char)
+           continue;
        if ((value = strchr (this_char, '=')) != NULL)
            *value++ = 0;
        if (!strcmp (this_char, "notail")) {