Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: help fixing timeline-0.9.0 for 1.3.18



Hi,

try adding a (const char *) in front of the functions that generate the 
strings for the sprintf call. This explicitly calls the conversion operator 
to of the cString class which returns a pointer to the string which is needed 
for the printf call.
E.g.: "ch2->Name()" should be changed to "(const char *) ch2->Name()"

Lars


On Wednesday 12 January 2005 09:20, C.Y.M wrote:
> Hi,
>
> When I try to compile the timeline-0.9.0 plugin, I am having trouble fixing
> the cTimer::PrintDay errors.
>
> These are the offending lines (if anyone can help me).
>
> checkerOsd.c:
> sprintf(line3,"%02d:%02d-%02d:%02d (%s), (P%d) %s:
> %s",ct2->Start()/100,ct2->Start()%100,ct2->Stop()/100,ct2->Stop()%100,ct2->
>PrintDay(ct2->Day()),ct2->Priority(),ch2->Name(),ct2->File()); checkerOsd.c:
> sprintf(line2,"%02d:%02d-%02d:%02d (%s), (P%d) %s:
> %s",ct1->Start()/100,ct1->Start()%100,ct1->Stop()/100,ct1->Stop()%100,ct1->
>PrintDay(ct1->Day()),ct1->Priority(),ch1->Name(),ct1->File()); checkerOsd.c:
>                                                           sprintf(line1,"%s
> %s (%s):",tr("Repeating conflict
> on"),ct1->PrintDay(mdays|0x80000000),tr("same input device"));
> checkerOsd.c:
> sprintf(line2,"%02d:%02d-%02d:%02d (%s), (P%d) %s:
> %s",ct1->Start()/100,ct1->Start()%100,ct1->Stop()/100,ct1->Stop()%100,ct1->
>PrintDay(ct1->Day()),ct1->Priority(),ch1->Name(),ct1->File()); checkerOsd.c:
> sprintf(line3,"%02d:%02d-%02d:%02d (%s), (P%d) %s:
> %s",ct2->Start()/100,ct2->Start()%100,ct2->Stop()/100,ct2->Stop()%100,ct2->
>PrintDay(ct2->Day()),ct2->Priority(),ch2->Name(),ct2->File());




Home | Main Index | Thread Index