On Mon, 21 Sep 1998, Del Minturn wrote: >comm.c:2322: warning: passing arg 1 of `interpret_colors' discards >`const' from pointer target type Typically done by: munging_function("A constant string."); You can either do: strcpy(buf, "A constant string."); munging_function(buf); or just be lazy and do: munging_function((char *)"A constant string."); (Which you may note that I did the latter in some places of stock CircleMUD. I did so because it was worse previously (no const at all) and less changes to get a "better" result. It may get further fixed in the future.) -- George Greer, greerga@circlemud.org | Genius may have its limitations, but http://mouse.van.ml.org/ (mostly) | stupidity is not thus handicapped. http://www.van.ml.org/CircleMUD/ | -- Elbert Hubbard +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST