Re: iedit 0.2 patch

From: Damian Jurzysta (
Date: 05/20/00

Hello Chris.

On 19-Maj-00, you wrote:

CG>> this is what happens after patching it in. when running make I get these
CG>> errors
CG>> (using suns cc compiler):
CG>> "oedit.c", line 1170: warning: a cast does not yield an lvalue
CG> This suggests that something is wrong with that line, the lvalue is the
CG> value on the left on an equality, eg:
CG> lvalue = rvalue;

only cc produces that error, not gcc.

CG>> when running the mud and typing iedit, the mud crashes and coredumps after
CG>> hitting return:
CG>> Segmentation Fault - core dumped
CG>> I doubt line 1170 has anything to do with it:
CG>>   CREATE(OLC(ch->desc), struct oasis_olc_data, 1);
CG> hmmm, at a guess it expands to:
CG> (struct oasis_olc_data *)ch->desc->olc = calloc(1, sizeof(struct
CG> oasis_olc_data));
CG> ^----OLC expands to this-------------^
CG> I'm not sure how gcc copes with this, I've altered my mud heavily, and
CG> got rid of the need for the cast in OLC (was annoying when trying to
CG> debug stuff.)
CG> hmm, what's the line above it?

  if (!found) {
    send_to_char("Couldn't find that object. Sorry.\r\n",ch);

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

This archive was generated by hypermail 2b30 : 04/10/01 PDT