[DG SCRIPTS] search_block incompatible pointer

From: Bryan Britt (beltane@BELTANE.COM)
Date: 07/16/98


When I compile from a stock pl14 patched with the dg_oasis patch, I get
the following error:


gcc -c -g -02 -Wall  dg_wldcmd.c
dg_wldcmd.c: In function 'do_wdoor':
dg_wldcmd.c:221: warning: passing arg 2 of 'search_block' from
incompatible pointer type
dg_wldcmd.c:226: warning: passing arg 2 of 'search_block' from
incompatible pointer type


The offending lines are below, starting with line 221:

if ((dir = search_block(direction, (char **)dirs, FALSE)) == -1) {
    wld_log(room, "wdoor: invalid direction");
    return;
}

if ((fd = search_block(field, (char **)door_field, FALSE)) == -1) {
    wld_log(room, "wdoor: invalid direction");
    return;
}


I assume this is the reason that we shut down every few minutes.  If
there are no players longged in, then it runs.  But if there is one
logged in, it will shutdown and 60 second reboot every few minutes.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ICQ: 386326
Bryan L. Britt                                        501-327-8558
Beltane Web Services, Conway, AR            http://www.beltane.com
~~~~~~~~~~Support Private Communications on the Internet~~~~~~~~~~
Moons of Beltane MUD               telnet://moons.beltane.com:4000


     +------------------------------------------------------------+
     | 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/15/00 PST