Re: a problem in index_boot

From: Angus Mezick (angus@EDGIL.CCMAIL.COMPUSERVE.COM)
Date: 02/18/98


     I am really suprised that gcc doesn't report this on a SGI Indy but
     index is a function in the string library.  it is a duplicate of
     strchr.  i have rename all indexes to ?index (findex, gindex) where
     appropriate. I am suprised that -Wshadow doesn't catch this... argh.

     This is bound to bite someone on the butt one of these days.
     --Angus


______________________________ Forward Header __________________________________
Subject: Re:  a problem in index_boot
Author:  INTERNET:CIRCLE@POST.QUEENSU.CA at CSERVE
Date:    2/17/98 6:04 PM

On Tue, 17 Feb 1998, Angus Mezick wrote:

>     the file ptr *index never seems to be closed.  Am i right about this?
>     Should it be closed... this seems a bit odd...

Doesn't seem to be.

diff -u stk/db.c indexclose/db.c
--- stk/db.c    Mon Dec 29 18:05:07 1997
+++ indexclose/db.c     Tue Feb 17 18:02:05 1998
@@ -565,7 +565,7 @@
     qsort(help_table, top_of_helpt, sizeof(struct help_index_element), hsort);
     top_of_helpt--;
   }
-
+  fclose(index);
 }


     +------------------------------------------------------------+
     | 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