From: Martin Q. <mqu...@us...> - 2006-08-29 21:54:40
|
Update of /cvsroot/flexml/flexml In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv29578 Modified Files: skel Log Message: Cleanup the const-ness of our data Index: skel =================================================================== RCS file: /cvsroot/flexml/flexml/skel,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- skel 27 Aug 2006 20:46:36 -0000 1.36 +++ skel 29 Aug 2006 21:54:37 -0000 1.37 @@ -125,7 +125,7 @@ #ifdef FLEXML_NEED_BUFFERLIT static void bufferliteral(char c, int* pp, const char* text) { - char *s = (c ? strchr(text,c) : (char*)text-1), *e = strrchr(text,c); + const char *s = (c ? strchr(text,c) : text-1), *e = strrchr(text,c); assert(s <= e); BUFFERSET(*pp); while (++s<e) { if (isspace(*s) && c) { BUFFERPUTC(' '); while (isspace(*s)) ++s; } |