On Tue, Jul 4, 2017 at 3:44 PM, Johan Kuuse <jo...@kuu.se> wrote: > Thanks for pointing that out. > On the other hand (being pedantic), maybe the second argument "HEAD", > being of type char [5], and thus passed as type (char *) to > fossil_strcmp(), should be casted to (const char*), right? > > > - if (fossil_strcmp((char*)P("REQUEST_METHOD"),"HEAD")!=0) > > > + if (fossil_strcmp(P("REQUEST_METHOD"),(const char*)"HEAD")!=0) >
String literals are always const, so that cast is a no-op. https://stackoverflow.com/questions/7774770/c-program-string-literals -- ----- stephan beal http://wanderinghorse.net/home/stephan/ "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of those who insist on a perfect world, freedom will have to do." -- Bigby Wolf _______________________________________________ fossil-dev mailing list fossil-dev@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/fossil-dev