Changeset 7628 for trunk/indexers/mg


Ignore:
Timestamp:
2004-06-22T16:17:51+12:00 (20 years ago)
Author:
kjdon
Message:

fixed a couple of compiler warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/indexers/mg/src/text/mgquery.c

    r3745 r7628  
    2424/*
    2525   $Log$
     26   Revision 1.2  2004/06/22 04:17:51  kjdon
     27   fixed a couple of compiler warnings
     28
    2629   Revision 1.1  2003/02/20 21:18:24  mdewsnip
    2730   Addition of MG package for search and retrieval
     
    345348{
    346349  static unsigned long NumBytes = 0, NumSeeks = 0, NumReads = 0;
    347   if (F)
    348     if ((int) F != -1)
    349       {
    350     if (!BooleanEnv (GetEnv ("briefstats"), 0))
    351       Add_Stats (S_File, F->name, "%7.1f kB (%3d seeks, %7d reads)",
    352            (double) F->Current.NumBytes / 1024, F->Current.NumSeeks,
    353              F->Current.NumReads);
    354     NumBytes += F->Current.NumBytes;
    355     NumSeeks += F->Current.NumSeeks;
    356     NumReads += F->Current.NumReads;
    357       }
    358     else
    359       {
    360     Add_Stats (S_File, "total", "%7.1f kB (%3d seeks, %7d reads)",
    361            (double) NumBytes / 1024, NumSeeks, NumReads);
    362     NumSeeks = NumReads = NumBytes = 0;
    363       }
    364 
     350  if (F)
     351    {
     352      if ((int) F != -1)
     353    {
     354      if (!BooleanEnv (GetEnv ("briefstats"), 0))
     355        Add_Stats (S_File, F->name, "%7.1f kB (%3d seeks, %7d reads)",
     356               (double) F->Current.NumBytes / 1024, F->Current.NumSeeks,
     357               F->Current.NumReads);
     358      NumBytes += F->Current.NumBytes;
     359      NumSeeks += F->Current.NumSeeks;
     360      NumReads += F->Current.NumReads;
     361    }
     362      else
     363    {
     364      Add_Stats (S_File, "total", "%7.1f kB (%3d seeks, %7d reads)",
     365             (double) NumBytes / 1024, NumSeeks, NumReads);
     366      NumSeeks = NumReads = NumBytes = 0;
     367    }
     368    }
    365369}
    366370
     
    531535RawDocOutput (query_data * qd, u_long num, FILE * Output)
    532536{
    533   static last_pos = 0;
     537  static u_long last_pos = 0;
    534538  static u_char *c_buffer = 0;
    535539  static int buf_len = -1;
Note: See TracChangeset for help on using the changeset viewer.