[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] CGI handler initialization
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] CGI handler initialization |
Date: |
Fri, 15 Jul 2011 15:15:53 +0200 |
rocco brandi <address@hidden> wrote:
> const tCGI myCGI={string, extract}; //definition of my handler
>
> http_set_cgi_handlers(myCGI,1); // for now I have just one handler
That's clearly wrong: http_set_cgi_handlers() accepts a tCGI pointer, but you
pass a value. You either need to change the call:
http_set_cgi_handlers(&myCGI,1);
or change the definition:
const tCGI myCGI[] = {{string, extract}};
Why did your compiler not warn when implicitly converting 'tCGI' to 'tCGI*'?
Simon
--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de