Alexandre CONRAD writes:
 > >
 > >
 > >Yes, I know about this error, but I don't get it on my systems. 
 > >I tried g++-2.95 and g++-3.2 and both don't give me this error. In
 > >curses.h mvprintw is declared as
 > >extern NCURSES_EXPORT(int) mvprintw (int,int, NCURSES_CONST char*,...) 
 > >                     GCC_PRINTFLIKE(3,4);
 > >which should be ok since NCURSES_CONST is const.
 > >
 > >If you have something else in your curses.h, tell me your version
 > >number.
 > >
 > Humm... Well, As I told you before :
 > 
 > extern NCURSES_EXPORT(int) mvprintw (int,int, NCURSES_CONST char *,...) 
 > /* implemented */
 >                 GCC_PRINTFLIKE(3,4);
 > 
 > On line 34 I got :
 > 
 > /* $Id: curses.h.in,v 1.125 2002/03/23 23:15:10 tom Exp $ */
 > 

Try replacing myprint with
void myprint(const char *str, int o, int t=1)
{
// dirty trick
        char **s;
        s = (char **)&str;

        mytime = time(0) - 1;
        killprint(o);
        clear_display();
        if (o){
                dvb.osd.Clear();
                dvb.osd.Text(0, 0, 20, 1, str);
                dvb.osd.Show();
                mytime = time(0)+t;
        }

// dirty trick s instead of str
        mvprintw(15,0,*s);
}

and replace the last call in void check_frontend(int show) with

        else {
                char str[80];
                strncpy(str,fstr.str().data(),80);
                mvprintw(17,0,str);
        }


Tell me what your compiler thinks of that.
I haven't got g++-3.2 running on this machine here right now, so I
can't test it at the moment.

Marcus

-- 
/--------------------------------------------------------------------\
| Dr. Marcus O.C. Metzler        |                                   |
|--------------------------------|-----------------------------------|
| [EMAIL PROTECTED]            | http://www.metzlerbros.de/        |
\--------------------------------------------------------------------/

 


-- 
Info:
To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe linux-dvb" as 
subject.

Reply via email to