Re: [SKILL]Retreat

From: Mike Breuer (mbreuer@new.rr.com)
Date: 09/02/01


From: "Luca" <wetwork@terra.com.br>
> act.offensive.c: In function `do_retreat':
> act.offensive.c:510: warning: passing arg 2 of `search_block' makes pointer
> from  integer without a cast
-- snip --
> line 510:  retreat_type = search_block(argument + 1, dir, FALSE);

The problem with argument 2 is that it is an integer, and search_block is
expecting a const char **.  I believe you want to pass "dirs" instead of
"dir".  (dirs is defined in constants.c)

Mike

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/06/01 PST