AW: [En-Nut-Discussion] ethernut/nut/include/strtok_r.h Revision 1.2 -- Problem
Oliver Schulz
Oliver.Schulz at bong.de
Thu Oct 16 14:17:09 CEST 2003
Hi Grahame,
please check out the whole CVS, then compile all nut libs with 'make install'. Now you have a current and working base.
Notice, that the strok_r function now comes from avr-libc an is slightly different than the old one. Please refer to the sources of the avr-libc. The new version expects three arguments.
Hope that helps,
Oliver.
-----Ursprüngliche Nachricht-----
Von: Grahame Kelly [mailto:grahame at wildpossum.com]
Gesendet: Donnerstag, 16. Oktober 2003 13:59
An: Nut Discussion List
Betreff: [En-Nut-Discussion] ethernut/nut/include/strtok_r.h Revision
1.2 -- Problem
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.
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo/en-nut-discussion
More information about the En-Nut-Discussion
mailing list