Commit 24a9366b authored by Dave Jones's avatar Dave Jones Committed by Jeff Garzik

s/strtok/strsep/ in gt96100 net driver

parent fd226511
...@@ -1624,8 +1624,9 @@ static int __init gt96100_setup(char *options) ...@@ -1624,8 +1624,9 @@ static int __init gt96100_setup(char *options)
if (!options || !*options) if (!options || !*options)
return 0; return 0;
for(this_opt=strtok(options, ","); while ((this_opt = strsep (&options, ",")) != NULL) {
this_opt; this_opt=strtok(NULL, ",")) { if (!*this_opt)
continue;
if (!strncmp(this_opt, "mac0:", 5)) { if (!strncmp(this_opt, "mac0:", 5)) {
memcpy(mac0, this_opt+5, 17); memcpy(mac0, this_opt+5, 17);
mac0[17]= '\0'; mac0[17]= '\0';
......
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