[En-Nut-Discussion] ethernut/nut/include/strtok_r.h Revision 1.2 -- Problem

Grahame Kelly grahame at wildpossum.com
Thu Oct 16 13:59:28 CEST 2003


Hi Harald.

I have a new problem ;-( When making /app/httpserv I got the following make errors
so I updated to ethernut/nut/include/strtok_r.h  Revision 1.2 from CVS.

Unfortunately the problem remains.

httpserv.c: In function `ShowForm':
httpserv.c:386: warning: passing arg 1 of `strtok_r' from incompatible pointer type
httpserv.c:386: error: too few arguments to function `strtok_r'
httpserv.c:387: warning: passing arg 1 of `strtok_r' from incompatible pointer type
httpserv.c:387: error: too few arguments to function `strtok_r'
make: *** [httpserv.o] Error 1


Which is in:       

 /* Extract 3 parameters. */
     qp = req->req_query;
     for (i = 0; i < 3; i++) {
            c[i] = strtok_r(&qp, "=");
            p[i] = strtok_r(&qp, "&");
     }

Any help appreciated.
Regards. Grahame.



More information about the En-Nut-Discussion mailing list