Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 26 Oct 2001 13:30:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 26 Oct 2001 13:30:10 -0400 Received: from smtpzilla3.xs4all.nl ([194.109.127.139]:2824 "EHLO smtpzilla3.xs4all.nl") by vger.kernel.org with ESMTP id ; Fri, 26 Oct 2001 13:29:56 -0400 Message-ID: <3BD99DB1.7B09DDBE@linux-m68k.org> Date: Fri, 26 Oct 2001 19:30:25 +0200 From: Roman Zippel X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.12 i686) X-Accept-Language: en MIME-Version: 1.0 To: =?iso-8859-1?Q?Ren=E9?= Scharfe CC: Alan Cox , Linus Torvalds , linux-kernel@vger.kernel.org Subject: Re: [PATCH] strtok --> strsep in framebuffer drivers In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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/