[ANNOUNCE] vdr-autosort-0.0.5

Message ID 4375ABCA.4060906@gmx.de
State New
Headers

Commit Message

Frank Scherthan Nov. 12, 2005, 8:46 a.m. UTC
  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
  

Comments

CopyPoint Nov. 12, 2005, 12:07 p.m. UTC | #1
At 09:46 12.11.05 +0100, you wrote:

>Attached is a small patch, that gets rid of the compiler-warnings.
Thank you, i didn't get any warning here.
Is there any option to force the compiler to be more strict?

I'm back on monday, have a nice WE

         Thorsten
  

Patch

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())){