From patchwork Sat Nov 12 08:46:02 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Scherthan X-Patchwork-Id: 12085 Received: from mail.gmx.net ([213.165.64.20]) by www.linuxtv.org with smtp (Exim 4.50) id 1Ear1v-0006ub-0W for vdr@linuxtv.org; Sat, 12 Nov 2005 09:46:35 +0100 Received: (qmail invoked by alias); 12 Nov 2005 08:46:04 -0000 Received: from p54ACB150.dip0.t-ipconnect.de (EHLO [192.168.0.2]) [84.172.177.80] by mail.gmx.net (mp033) with SMTP; 12 Nov 2005 09:46:04 +0100 X-Authenticated: #596386 Message-ID: <4375ABCA.4060906@gmx.de> Date: Sat, 12 Nov 2005 09:46:02 +0100 From: Frank Scherthan User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: VDR Mailing List Subject: Re: [vdr] [ANNOUNCE] vdr-autosort-0.0.5 References: <5.1.0.14.0.20051111112242.00a3b2e0@server2.server-einstellung.de> In-Reply-To: <5.1.0.14.0.20051111112242.00a3b2e0@server2.server-einstellung.de> X-Y-GMX-Trusted: 0 X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Nov 2005 08:46:35 -0000 Status: O X-Status: X-Keywords: X-UID: 6036 CopyPoint schrieb: > > Here's something new to play with: > > http://www.copypointburscheid.de/linux/vdr-autosort-0.0.5.tgz > > Have fun > > Thorsten Thank you :) Attached is a small patch, that gets rid of the compiler-warnings. Frank diff -Naur autosort-0.0.5-orig/autosort.c autosort-0.0.5/autosort.c --- autosort-0.0.5-orig/autosort.c 2005-11-12 09:38:50.000000000 +0100 +++ autosort-0.0.5/autosort.c 2005-11-12 09:40:12.000000000 +0100 @@ -844,7 +844,7 @@ // Is everybody there? group = AutoGroups.GetFirstByOrder(); bool foundNext; - while (group = AutoGroups.GetNextByOrder(group->OIdx())){ + while ((group = AutoGroups.GetNextByOrder(group->OIdx()))){ foundNext = false; for (cChannel *channel = Channels.Get(Channels.GetNextGroup(firstGroupChIdx)); (channel && !foundNext); channel = Channels.Get(Channels.GetNextGroup(channel->Index()))) { @@ -862,7 +862,7 @@ { foundNext = false; group = AutoGroups.GetFirstByOrder(); - while (group = AutoGroups.GetNextByOrder(group->OIdx())){ + while ((group = AutoGroups.GetNextByOrder(group->OIdx()))){ if (strcmp(channel->Name(),group->Name()) == 0) { foundNext = true; @@ -880,7 +880,7 @@ cAutoGroup *nextGroup = group; cChannel *channel = Channels.Get(group->GetChIndex()); - while (nextGroup = AutoGroups.GetNextByOrder(group->OIdx())){ + while ((nextGroup = AutoGroups.GetNextByOrder(group->OIdx()))){ channel = Channels.Get(Channels.GetNextGroup(group->GetChIndex())); //dsyslog("CheckOrder: Group is: %s Next should be: %s Next is: %s",group->Name(),nextGroup->Name(),channel->Name()); if (!strcmp(channel->Name(),nextGroup->Name())){