Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

OSQAccept: too few arguments ?

Hi everybody !

I have a problem with the function OSQAccept().

Its goal is to read a queue of messages without waiting .

The problem is that at the compilation phase, the program says that there is too few arguments:

error: too few arguments to function `OSQAccept'
error: incompatible types in assignment

The corresponding code line is:

get_queue_mess = OSQAccept((OS_EVENT*) pdata);

The problem is that in the uC/OS-II manual, more exactly in the section 6.07.05, the prototype of this function takes only one argument:

void *OSQAccept (OS_EVENT *pevent)

So does anybody know what's wrong ?

Thank you.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Sorry,

    I've found where was located the problem ;-)

    The prototype of the function OSQAccept has been changed in my version:

    void  *OSQAccept (OS_EVENT *pevent, INT8U *err)