Changeset 170 for trunk/src/sh_mem.c


Ignore:
Timestamp:
Apr 30, 2008, 11:56:45 PM (17 years ago)
Author:
katerina
Message:

Plenty of compiler warnings fixed, SQL query length fixed, doc update.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_mem.c

    r154 r170  
    4343#include "sh_pthread.h"
    4444
    45 extern int safe_logger (int signal, int method, char * details);
     45extern int safe_logger (int thesignal, int method, char * details);
    4646
    4747#undef  FIL__
     
    258258
    259259
    260 void sh_mem_free (void * a, char * file, int line)
    261 {
    262   volatile memlist_t * this   = memlist;
    263   volatile memlist_t * before = memlist;
     260void sh_mem_free (void * aa, char * file, int line)
     261{
     262  memlist_t * this;
     263  memlist_t * before;
    264264  unsigned long        size   = 0;
    265 
     265  void      * a;
    266266  SL_ENTER(_("sh_mem_free"));
    267267
     
    269269  SH_MUTEX_RECURSIVE_LOCK(mutex_mem);
    270270
     271  a      = aa;
     272  this   = memlist;
     273  before = memlist;
     274 
    271275  if ( a == NULL )
    272276    {
     
    315319  free(a);
    316320  if (this)
    317     free((void*)this);
     321    free(this);
    318322  ++Free_Count;
    319323  --Now_Alloc_Count;
Note: See TracChangeset for help on using the changeset viewer.