[pso] 'return' : incompatible types - from 'SINGLE_LIST_ENTRY *' to 'SINGLE_LIST_ENTRY *'

Dragos Tatulea dragos.tatulea at gmail.com
Tue Mar 27 22:56:40 EEST 2007


Jeez, you're right!  Sorry...

On 3/27/07, Razvan Deaconescu <razvand at cs.pub.ro> wrote:
>
> Dragos Tatulea wrote:
> > Am doua warning-uri ciudate pe windows la compilare ( care sunt "treated
> > as error"):
> >
> > 'return' : incompatible types - from 'SINGLE_LIST_ENTRY *' to
> > 'SINGLE_LIST_ENTRY *'
> > '=' : incompatible types - from 'SINGLE_LIST_ENTRY *' to
> > 'SINGLE_LIST_ENTRY *'
> >
> > Nu prea reusesc sa inteleg ce inseamna. Codul arata cam asa:
> >
> > - pt primul warning :
> >
> > struct SINGLE_LIST_ENTRY* SciIsMonitored( int syscall, HANDLE pid)
> > {
> > SINGLE_LIST_ENTRY *i,  *j;
> > ...
> > return i; // aici intoarce un pointer la un element din lista de procese
> > monitorizate
> > }
> >
> > - pt al doilea warning:
> > {
> > SINGLE_LIST_ENTRY *i;
> >
> > i = SciIsMonitored( syscall, pid);
> > }
> >
> > Dupa cum se poate observa, warningurile sunt legate.
> >
> > Any ideas?
>
> pe scurt:
> http://cs.pub.ro/~pso/lxr/source/public/sdk/inc/ntdef.h?v=wrk-1.2#1089
>
> detaliat: ce cauta "struct" in fata la SINGLE_LIST_ENTRY? :-)
>
> Razvan
> _______________________________________________
> pso mailing list
> pso at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20070327/4f0cc416/attachment.htm


More information about the pso mailing list