]> git.neil.brown.name Git - history.git/commitdiff
Fix neofb.c to use strsep.
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Sun, 14 Apr 2002 15:31:37 +0000 (10:31 -0500)
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Sun, 14 Apr 2002 15:31:37 +0000 (10:31 -0500)
drivers/video/neofb.c

index 757512059647098525957bcbe03161dbd74241b7..4a51b2f42cc20d32a8336a68f083ce987ed34c6e 100644 (file)
@@ -2365,7 +2365,7 @@ int __init neofb_setup (char *options)
   if (!options || !*options)
     return 0;
 
-  for (this_opt=strtok(options,","); this_opt; this_opt=strtok(NULL,","))
+  while ((this_opt = strsep(&options,",")) != NULL)
     {
       if (!*this_opt) continue;