diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-11-01 10:40:38 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-11-01 10:40:38 +0100 |
commit | 0b62aff0e3385ed0c11fda145c2a5167bbc1c56d (patch) | |
tree | 6067296e3f76b842a59919c3453a45c83538ad97 /epg.c | |
parent | c88e65b6385a9c72778ea46fe4c4c805976c7b96 (diff) | |
download | vdr-0b62aff0e3385ed0c11fda145c2a5167bbc1c56d.tar.gz vdr-0b62aff0e3385ed0c11fda145c2a5167bbc1c56d.tar.bz2 |
Now using qsort() to sort cListBase lists
Diffstat (limited to 'epg.c')
-rw-r--r-- | epg.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -7,7 +7,7 @@ * Original version (as used in VDR before 1.3.0) written by * Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>. * - * $Id: epg.c 1.20 2004/10/24 15:01:50 kls Exp $ + * $Id: epg.c 1.21 2004/10/31 16:12:36 kls Exp $ */ #include "epg.h" @@ -40,10 +40,10 @@ cEvent::~cEvent() free(description); } -bool cEvent::operator< (const cListObject &ListObject) +int cEvent::Compare(const cListObject &ListObject) const { cEvent *e = (cEvent *)&ListObject; - return startTime < e->startTime; + return startTime - e->startTime; } void cEvent::SetEventID(u_int16_t EventID) |