Re: [Code] A Few More Warnings

From: George (greerga@CIRCLEMUD.ORG)
Date: 12/19/97


On Fri, 5 Dec 1997, Aaron Miller wrote:

>modify.c:150:comparison between signed and unsigned
>
>150 reads:
>
>else if ((total_len = ((strlen(t) - strlen(s)) + strlen(*d->str))) <=
> d->max_str)

Check to see what total_len is and change it.  If it's unsigned, make it
signed. (ush_int -> sh_int) or vice versa.

>olc.c:47: warning: type defaults to `int' in declaration of `real_shop'
> extern real_shop(int vnum);

  extern int real_shop(int vnum);

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- 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/08/00 PST