]> git.hungrycats.org Git - linux/commitdiff
s/strtok/strsep/ in gt96100 net driver
authorDave Jones <davej@suse.de>
Tue, 30 Apr 2002 22:12:18 +0000 (18:12 -0400)
committerJeff Garzik <jgarzik@mandrakesoft.com>
Tue, 30 Apr 2002 22:12:18 +0000 (18:12 -0400)
drivers/net/gt96100eth.c

index 6b93b8a11e260fb1471428b3d4cfa1fe81af9320..0a70dc2816ceb1a996e6bc6fbca63e7347573526 100644 (file)
@@ -1624,8 +1624,9 @@ static int __init gt96100_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;
                if (!strncmp(this_opt, "mac0:", 5)) {
                        memcpy(mac0, this_opt+5, 17);
                        mac0[17]= '\0';