]> git.hungrycats.org Git - linux/commitdiff
[PATCH] strtok->strsep in isdn avmb1 capifs
authorDave Jones <davej@suse.de>
Wed, 3 Apr 2002 03:57:48 +0000 (19:57 -0800)
committerDave Jones <davej@suse.de>
Wed, 3 Apr 2002 03:57:48 +0000 (19:57 -0800)
drivers/isdn/avmb1/capifs.c

index b2d4aedff998c3e07ab61f4850df54354aba478c..1974ff61c5ebdabec40bf42012045f98631180c3 100644 (file)
@@ -235,10 +235,9 @@ static int capifs_parse_options(char *options, struct capifs_sb_info *sbi)
        unsigned int maxncci = 512;
        char *this_char, *value;
 
-       this_char = NULL;
-       if ( options )
-               this_char = strtok(options,",");
-       for ( ; this_char; 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,"uid")) {