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

From: Roman Zippel (zippel@linux-m68k.org)
Date: Fri Oct 26 2001 - 12:30:25 EST


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/



This archive was generated by hypermail 2b29 : Wed Oct 31 2001 - 21:00:31 EST