[vdr] Re: [PATCH] vdr-streamdev CVS: remote timers

Sebastian Frei Sebastian at schnapsleichen.de
Thu Jan 19 18:52:37 CET 2006


Hi

it doesn't compile with vdr-1.3.39:

g++ -O2 -Wall -Woverloaded-virtual -O2 -c -D_GNU_SOURCE -DHAVE_AUTOPID 
-I../../.                          ./include -I../DVB/include -I. -o 
client/menu.o client/menu.c
client/menu.c: In constructor 
`cStreamdevMenuEditTimer::cStreamdevMenuEditTimer(                          cRemoteTimer*, 
bool)':
client/menu.c:143: error: invalid conversion from `int*' to `uint*'
client/menu.c:143: error:   initializing argument 2 of 
`cMenuEditBitItem::cMenuE                          ditBitItem(const char*, 
uint*, uint, const char*, const char*)'
client/menu.c:154: error: invalid conversion from `int*' to `uint*'
client/menu.c:154: error:   initializing argument 2 of 
`cMenuEditBitItem::cMenuE                          ditBitItem(const char*, 
uint*, uint, const char*, const char*)'
make: *** [client/menu.o] Error 1


The fix is to change the line 63 of client/remote.h

private:
        bool            m_IsValid;
        int             m_Index;
-       int             m_Active;
#if VDRVERSNUM >= 10334
        time_t          m_Day;
#else
        int             m_Day;


private:
        bool            m_IsValid;
        int             m_Index;
+        uint             m_Active;
#if VDRVERSNUM >= 10334
        time_t          m_Day;
#else
        int             m_Day;



More information about the vdr mailing list