Re: [PATCH] strtok --> strsep in framebuffer drivers

Roman Zippel (zippel@linux-m68k.org)
Fri, 26 Oct 2001 19:30:25 +0200


Hi,

> diff -ur linux-2.4.13-pre5/drivers/video/virgefb.c
> linux-2.4.13-pre5-rs/drivers/video/virgefb.c
> --- linux-2.4.13-pre5/drivers/video/virgefb.c Fri Sep 14 01:04:43 2001
> +++ linux-2.4.13-pre5-rs/drivers/video/virgefb.c Sun Oct 21 13:02:11 2001
> @@ -1085,7 +1085,7 @@
> if (!options || !*options)
> return 0;
>
> - for (this_opt = strtok(options, ","); this_opt; this_opt = strtok(NULL,
> ","))
> + while (this_opt = strsep(&options, ",")) {
> if (!strcmp(this_opt, "inverse")) {
> Cyberfb_inverse = 1;
> fb_invert_cmaps();

You add a left brace here.

bye, Roman
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/