On Mon, May 27, 2002 at 11:30:31AM -0400, Mike wrote:
> Ack. I added a new sh_int to the interp.c table called term.  Then, after
> the FOUND loop in void interpret, which checks if a command is there and
> accessible according to trust, i added:
> 
> if ( cmd_table[cmd].term = 0 )
>       {
>         sprintf(buf,"edm: terminal command not found\n\r");
>         send_to_char(buf,ch);
>         return;
>       }
> 0 is not a terminal command.  1 is a terminal command.  And i added all the
> term sh_int's to the table.. And when I compile, it compiles, but i get the
> following error:
> 
> interp.c: In function `interpret':
> interp.c:488: warning: assignment of read-only member `term'

Stop making assignments when you're trying to compare.

Edwin

-- 
Edwin Groothuis      |           Personal website: http://www.MavEtJu.org
[EMAIL PROTECTED]    |        Interested in MUDs? Visit Fatal Dimensions:
bash$ :(){ :|:&};:   |                    http://www.FatalDimensions.org/

Reply via email to