Re: Need help with prompt snippet

From: George (greerga@CIRCLEMUD.ORG)
Date: 09/21/98

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.");

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

George Greer, | Genius may have its limitations, but   (mostly) | stupidity is not thus handicapped.    |                  -- Elbert Hubbard

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/15/00 PST