Changeset 459 for WizardsToolkit/trunk

Show
Ignore:
Timestamp:
10/25/09 14:29:26 (4 weeks ago)
Author:
cristy
Message:
 
Location:
WizardsToolkit/trunk/wizard
Files:
9 modified

Legend:

Unmodified
Added
Removed
  • WizardsToolkit/trunk/wizard/blob.c

    r452 r459  
    329329      blob_info->filename); 
    330330  destroy=WizardFalse; 
    331   LockSemaphoreInfo(blob_info->semaphore); 
     331  (void) LockSemaphoreInfo(blob_info->semaphore); 
    332332  blob_info->reference_count--; 
    333333  if (blob_info->reference_count == 0) 
    334334    destroy=WizardTrue; 
    335   UnlockSemaphoreInfo(blob_info->semaphore); 
     335  (void) UnlockSemaphoreInfo(blob_info->semaphore); 
    336336  if (destroy == WizardFalse) 
    337337    return(blob_info); 
  • WizardsToolkit/trunk/wizard/configure.c

    r454 r459  
    163163  if (configure_semaphore == (SemaphoreInfo *) NULL) 
    164164    AcquireSemaphoreInfo(&configure_semaphore); 
    165   LockSemaphoreInfo(configure_semaphore); 
     165  (void) LockSemaphoreInfo(configure_semaphore); 
    166166  if (configure_list != (LinkedListInfo *) NULL) 
    167167    configure_list=DestroyLinkedList(configure_list,DestroyConfigureElement); 
    168168  configure_list=(LinkedListInfo *) NULL; 
    169169  instantiate_configure=WizardFalse; 
    170   UnlockSemaphoreInfo(configure_semaphore); 
     170  (void) UnlockSemaphoreInfo(configure_semaphore); 
    171171  DestroySemaphoreInfo(&configure_semaphore); 
    172172} 
     
    256256    Search for named configure. 
    257257  */ 
    258   LockSemaphoreInfo(configure_semaphore); 
     258  (void) LockSemaphoreInfo(configure_semaphore); 
    259259  ResetLinkedListIterator(configure_list); 
    260260  p=(const ConfigureInfo *) GetNextValueInLinkedList(configure_list); 
     
    271271    (void) InsertValueInLinkedList(configure_list,0, 
    272272      RemoveElementByValueFromLinkedList(configure_list,p)); 
    273   UnlockSemaphoreInfo(configure_semaphore); 
     273  (void) UnlockSemaphoreInfo(configure_semaphore); 
    274274  return(p); 
    275275} 
     
    355355    Generate configure list. 
    356356  */ 
    357   LockSemaphoreInfo(configure_semaphore); 
     357  (void) LockSemaphoreInfo(configure_semaphore); 
    358358  ResetLinkedListIterator(configure_list); 
    359359  p=(const ConfigureInfo *) GetNextValueInLinkedList(configure_list); 
     
    365365    p=(const ConfigureInfo *) GetNextValueInLinkedList(configure_list); 
    366366  } 
    367   UnlockSemaphoreInfo(configure_semaphore); 
     367  (void) UnlockSemaphoreInfo(configure_semaphore); 
    368368  qsort((void *) options,(size_t) i,sizeof(*options),ConfigureInfoCompare); 
    369369  options[i]=(ConfigureInfo *) NULL; 
     
    442442  if (p == (const ConfigureInfo *) NULL) 
    443443    return((char **) NULL); 
    444   LockSemaphoreInfo(configure_semaphore); 
    445   UnlockSemaphoreInfo(configure_semaphore); 
     444  (void) LockSemaphoreInfo(configure_semaphore); 
     445  (void) UnlockSemaphoreInfo(configure_semaphore); 
    446446  options=(char **) AcquireQuantumMemory((size_t) 
    447447    GetNumberOfElementsInLinkedList(configure_list)+1UL,sizeof(*options)); 
    448448  if (options == (char **) NULL) 
    449449    return((char **) NULL); 
    450   LockSemaphoreInfo(configure_semaphore); 
     450  (void) LockSemaphoreInfo(configure_semaphore); 
    451451  ResetLinkedListIterator(configure_list); 
    452452  p=(const ConfigureInfo *) GetNextValueInLinkedList(configure_list); 
     
    458458    p=(const ConfigureInfo *) GetNextValueInLinkedList(configure_list); 
    459459  } 
    460   UnlockSemaphoreInfo(configure_semaphore); 
     460  (void) UnlockSemaphoreInfo(configure_semaphore); 
    461461  qsort((void *) options,(size_t) i,sizeof(*options),ConfigureCompare); 
    462462  options[i]=(char *) NULL; 
     
    821821      if (configure_semaphore == (SemephoreInfo *) NULL) 
    822822        AcquireSemaphoreInfo(&configure_semaphore); 
    823       LockSemaphoreInfo(configure_semaphore); 
     823      (void) LockSemaphoreInfo(configure_semaphore); 
    824824      if ((configure_list == (LinkedListInfo *) NULL) && 
    825825          (instantiate_configure == WizardFalse)) 
     
    828828          instantiate_configure=WizardTrue; 
    829829        } 
    830       UnlockSemaphoreInfo(configure_semaphore); 
     830      (void) UnlockSemaphoreInfo(configure_semaphore); 
    831831    } 
    832832  return(configure_list != (LinkedListInfo *) NULL ? WizardTrue : WizardFalse); 
  • WizardsToolkit/trunk/wizard/exception.c

    r452 r459  
    185185  if (exception->exceptions == (void *) NULL) 
    186186    return; 
    187   LockSemaphoreInfo(exception->semaphore); 
     187  (void) LockSemaphoreInfo(exception->semaphore); 
    188188  p=(ExceptionInfo *) RemoveLastElementFromLinkedList((LinkedListInfo *) 
    189189    exception->exceptions); 
     
    197197  exception->reason=(char *) NULL; 
    198198  exception->description=(char *) NULL; 
    199   UnlockSemaphoreInfo(exception->semaphore); 
     199  (void) UnlockSemaphoreInfo(exception->semaphore); 
    200200  errno=0; 
    201201} 
     
    233233  if (exception->exceptions == (void *) NULL) 
    234234    return; 
    235   LockSemaphoreInfo(exception->semaphore); 
     235  (void) LockSemaphoreInfo(exception->semaphore); 
    236236  ResetLinkedListIterator((LinkedListInfo *) exception->exceptions); 
    237237  p=(const ExceptionInfo *) GetNextValueInLinkedList((LinkedListInfo *) 
     
    248248      exception->exceptions); 
    249249  } 
    250   UnlockSemaphoreInfo(exception->semaphore); 
     250  (void) UnlockSemaphoreInfo(exception->semaphore); 
    251251  ClearWizardException(exception); 
    252252} 
     
    401401  assert(exception != (ExceptionInfo *) NULL); 
    402402  assert(exception->signature == WizardSignature); 
    403   LockSemaphoreInfo(exception->semaphore); 
     403  (void) LockSemaphoreInfo(exception->semaphore); 
    404404  exception->severity=UndefinedException; 
    405405  if (exception->exceptions != (void *) NULL) 
     
    407407      exception->exceptions,DestroyExceptionElement); 
    408408  exception->signature=(~WizardSignature); 
    409   UnlockSemaphoreInfo(exception->semaphore); 
     409  (void) UnlockSemaphoreInfo(exception->semaphore); 
    410410  DestroySemaphoreInfo(&exception->semaphore); 
    411411  if (exception->relinquish != WizardFalse) 
     
    663663  if (relative->exceptions == (void *) NULL) 
    664664    return; 
    665   LockSemaphoreInfo(exception->semaphore); 
     665  (void) LockSemaphoreInfo(exception->semaphore); 
    666666  ResetLinkedListIterator((LinkedListInfo *) relative->exceptions); 
    667667  p=(const ExceptionInfo *) GetNextValueInLinkedList((LinkedListInfo *) 
     
    673673      relative->exceptions); 
    674674  } 
    675   UnlockSemaphoreInfo(exception->semaphore); 
     675  (void) UnlockSemaphoreInfo(exception->semaphore); 
    676676} 
    677677 
  • WizardsToolkit/trunk/wizard/file.c

    r452 r459  
    147147  assert(file_info->signature == WizardSignature); 
    148148  (void) LogWizardEvent(TraceEvent,GetWizardModule(),"%s",file_info->path); 
    149   LockSemaphoreInfo(file_info->semaphore); 
     149  (void) LockSemaphoreInfo(file_info->semaphore); 
    150150  path=AcquireString(file_info->path); 
    151151  AppendFileExtension("lck",path); 
     
    176176              { 
    177177                path=DestroyString(path); 
    178                 UnlockSemaphoreInfo(file_info->semaphore); 
     178                (void) UnlockSemaphoreInfo(file_info->semaphore); 
    179179                return(WizardTrue); 
    180180              } 
     
    220220  } 
    221221  path=DestroyString(path); 
    222   UnlockSemaphoreInfo(file_info->semaphore); 
     222  (void) UnlockSemaphoreInfo(file_info->semaphore); 
    223223  return(WizardFalse); 
    224224} 
     
    433433  assert(file_info->signature == WizardSignature); 
    434434  (void) LogWizardEvent(TraceEvent,GetWizardModule(),"%s",file_info->path); 
    435   LockSemaphoreInfo(file_info->semaphore); 
     435  (void) LockSemaphoreInfo(file_info->semaphore); 
    436436  if (file_info->file >= 0) 
    437437    if (close(file_info->file) == -1) 
     
    443443    file_info->path=DestroyString(file_info->path); 
    444444  file_info->signature=(~WizardSignature); 
    445   UnlockSemaphoreInfo(file_info->semaphore); 
     445  (void) UnlockSemaphoreInfo(file_info->semaphore); 
    446446  DestroySemaphoreInfo(&file_info->semaphore); 
    447447  file_info=(FileInfo *) RelinquishWizardMemory(file_info); 
  • WizardsToolkit/trunk/wizard/log.c

    r454 r459  
    226226  log_info=(LogInfo *) GetLogInfo("*",exception); 
    227227  exception=DestroyExceptionInfo(exception); 
    228   LockSemaphoreInfo(log_semaphore); 
     228  (void) LockSemaphoreInfo(log_semaphore); 
    229229  if (log_info->file != (FILE *) NULL) 
    230230    { 
     
    234234      log_info->file=(FILE *) NULL; 
    235235    } 
    236   UnlockSemaphoreInfo(log_semaphore); 
     236  (void) UnlockSemaphoreInfo(log_semaphore); 
    237237} 
    238238 
     
    280280    Search for named log. 
    281281  */ 
    282   LockSemaphoreInfo(log_semaphore); 
     282  (void) LockSemaphoreInfo(log_semaphore); 
    283283  ResetLinkedListIterator(log_list); 
    284284  p=(const LogInfo *) GetNextValueInLinkedList(log_list); 
     
    295295    (void) InsertValueInLinkedList(log_list,0, 
    296296      RemoveElementByValueFromLinkedList(log_list,p)); 
    297   UnlockSemaphoreInfo(log_semaphore); 
     297  (void) UnlockSemaphoreInfo(log_semaphore); 
    298298  return(p); 
    299299} 
     
    376376    Generate log list. 
    377377  */ 
    378   LockSemaphoreInfo(log_semaphore); 
     378  (void) LockSemaphoreInfo(log_semaphore); 
    379379  ResetLinkedListIterator(log_list); 
    380380  p=(const LogInfo *) GetNextValueInLinkedList(log_list); 
     
    386386    p=(const LogInfo *) GetNextValueInLinkedList(log_list); 
    387387  } 
    388   UnlockSemaphoreInfo(log_semaphore); 
     388  (void) UnlockSemaphoreInfo(log_semaphore); 
    389389  qsort((void *) preferences,(size_t) i,sizeof(*preferences),LogInfoCompare); 
    390390  preferences[i]=(LogInfo *) NULL; 
     
    469469    Generate log list. 
    470470  */ 
    471   LockSemaphoreInfo(log_semaphore); 
     471  (void) LockSemaphoreInfo(log_semaphore); 
    472472  ResetLinkedListIterator(log_list); 
    473473  p=(const LogInfo *) GetNextValueInLinkedList(log_list); 
     
    479479    p=(const LogInfo *) GetNextValueInLinkedList(log_list); 
    480480  } 
    481   UnlockSemaphoreInfo(log_semaphore); 
     481  (void) UnlockSemaphoreInfo(log_semaphore); 
    482482  qsort((void *) preferences,(size_t) i,sizeof(*preferences),LogCompare); 
    483483  preferences[i]=(char *) NULL; 
     
    537537      if (log_semaphore == (SemaphoreInfo *) NULL) 
    538538        AcquireSemaphoreInfo(&log_semaphore); 
    539       LockSemaphoreInfo(log_semaphore); 
     539      (void) LockSemaphoreInfo(log_semaphore); 
    540540      if ((log_list == (LinkedListInfo *) NULL) && 
    541541          (instantiate_log == WizardFalse)) 
     
    544544          instantiate_log=WizardTrue; 
    545545        } 
    546       UnlockSemaphoreInfo(log_semaphore); 
     546      (void) UnlockSemaphoreInfo(log_semaphore); 
    547547    } 
    548548  return(log_list != (LinkedListInfo *) NULL ? WizardTrue : WizardFalse); 
     
    745745  if (log_semaphore == (SemaphoreInfo *) NULL) 
    746746    AcquireSemaphoreInfo(&log_semaphore); 
    747   LockSemaphoreInfo(log_semaphore); 
     747  (void) LockSemaphoreInfo(log_semaphore); 
    748748  if (log_list != (LinkedListInfo *) NULL) 
    749749    log_list=DestroyLinkedList(log_list,DestroyLogElement); 
    750750  instantiate_log=WizardFalse; 
    751   UnlockSemaphoreInfo(log_semaphore); 
     751  (void) UnlockSemaphoreInfo(log_semaphore); 
    752752  DestroySemaphoreInfo(&log_semaphore); 
    753753} 
     
    11341134  log_info=(LogInfo *) GetLogInfo("*",exception); 
    11351135  exception=DestroyExceptionInfo(exception); 
    1136   LockSemaphoreInfo(log_semaphore); 
     1136  (void) LockSemaphoreInfo(log_semaphore); 
    11371137  if ((log_info->event_mask & type) == 0) 
    11381138    { 
    1139       UnlockSemaphoreInfo(log_semaphore); 
     1139      (void) UnlockSemaphoreInfo(log_semaphore); 
    11401140      return(WizardTrue); 
    11411141    } 
     
    11521152    { 
    11531153      (void) ContinueTimer(log_info->timer); 
    1154       UnlockSemaphoreInfo(log_semaphore); 
     1154      (void) UnlockSemaphoreInfo(log_semaphore); 
    11551155      return(WizardFalse); 
    11561156    } 
     
    11951195            { 
    11961196              (void) ContinueTimer(log_info->timer); 
    1197               UnlockSemaphoreInfo(log_semaphore); 
     1197              (void) UnlockSemaphoreInfo(log_semaphore); 
    11981198              return(WizardFalse); 
    11991199            } 
     
    12031203          if (log_info->file == (FILE *) NULL) 
    12041204            { 
    1205               UnlockSemaphoreInfo(log_semaphore); 
     1205              (void) UnlockSemaphoreInfo(log_semaphore); 
    12061206              return(WizardFalse); 
    12071207            } 
     
    12291229  text=(char  *) RelinquishWizardMemory(text); 
    12301230  (void) ContinueTimer(log_info->timer); 
    1231   UnlockSemaphoreInfo(log_semaphore); 
     1231  (void) UnlockSemaphoreInfo(log_semaphore); 
    12321232  return(WizardTrue); 
    12331233} 
     
    16931693  exception=DestroyExceptionInfo(exception); 
    16941694  option=ParseWizardOption(WizardLogEventOptions,WizardTrue,events); 
    1695   LockSemaphoreInfo(log_semaphore); 
     1695  (void) LockSemaphoreInfo(log_semaphore); 
    16961696  log_info=(LogInfo *) GetValueFromLinkedList(log_list,0); 
    16971697  log_info->event_mask=(LogEventType) option; 
    16981698  if (option == -1) 
    16991699    log_info->event_mask=UndefinedEvents; 
    1700   UnlockSemaphoreInfo(log_semaphore); 
     1700  (void) UnlockSemaphoreInfo(log_semaphore); 
    17011701  return(log_info->event_mask); 
    17021702} 
     
    17351735  log_info=(LogInfo *) GetLogInfo("*",exception); 
    17361736  exception=DestroyExceptionInfo(exception); 
    1737   LockSemaphoreInfo(log_semaphore); 
     1737  (void) LockSemaphoreInfo(log_semaphore); 
    17381738  if (log_info->format != (char *) NULL) 
    17391739    log_info->format=DestroyString(log_info->format); 
    17401740  log_info->format=ConstantString(format); 
    1741   UnlockSemaphoreInfo(log_semaphore); 
     1741  (void) UnlockSemaphoreInfo(log_semaphore); 
    17421742} 
    17431743 
  • WizardsToolkit/trunk/wizard/memory.c

    r452 r459  
    391391  if (free_segments == (DataSegmentInfo *) NULL) 
    392392    { 
    393       LockSemaphoreInfo(memory_semaphore); 
     393      (void) LockSemaphoreInfo(memory_semaphore); 
    394394      if (free_segments == (DataSegmentInfo *) NULL) 
    395395        { 
     
    411411          free_segments=(&memory_info.segment_pool[0]); 
    412412        } 
    413       UnlockSemaphoreInfo(memory_semaphore); 
    414     } 
    415   LockSemaphoreInfo(memory_semaphore); 
     413      (void) UnlockSemaphoreInfo(memory_semaphore); 
     414    } 
     415  (void) LockSemaphoreInfo(memory_semaphore); 
    416416  memory=AcquireBlock(size == 0 ? 1UL : size); 
    417417  if (memory == (void *) NULL) 
     
    420420        memory=AcquireBlock(size == 0 ? 1UL : size); 
    421421    } 
    422   UnlockSemaphoreInfo(memory_semaphore); 
     422  (void) UnlockSemaphoreInfo(memory_semaphore); 
    423423#endif 
    424424  return(memory); 
     
    546546    i; 
    547547 
    548   LockSemaphoreInfo(memory_semaphore); 
    549   UnlockSemaphoreInfo(memory_semaphore); 
     548  (void) LockSemaphoreInfo(memory_semaphore); 
     549  (void) UnlockSemaphoreInfo(memory_semaphore); 
    550550  for (i=0; i < (long) memory_info.number_segments; i++) 
    551551    if (memory_info.segments[i]->mapped == WizardFalse) 
     
    742742  assert((SizeOfBlock(memory) % (4*sizeof(size_t))) == 0); 
    743743  assert((*BlockHeader(NextBlock(memory)) & PreviousBlockBit) != 0); 
    744   LockSemaphoreInfo(memory_semaphore); 
     744  (void) LockSemaphoreInfo(memory_semaphore); 
    745745  if ((*BlockHeader(memory) & PreviousBlockBit) == 0) 
    746746    { 
     
    773773  *BlockHeader(NextBlock(memory))&=(~PreviousBlockBit); 
    774774  InsertFreeBlock(memory,AllocationPolicy(SizeOfBlock(memory))); 
    775   UnlockSemaphoreInfo(memory_semaphore); 
     775  (void) UnlockSemaphoreInfo(memory_semaphore); 
    776776#endif 
    777777  return((void *) NULL); 
     
    870870    memory=RelinquishWizardMemory(memory); 
    871871#else 
    872   LockSemaphoreInfo(memory_semaphore); 
     872  (void) LockSemaphoreInfo(memory_semaphore); 
    873873  block=ResizeBlock(memory,size == 0 ? 1UL : size); 
    874874  if (block == (void *) NULL) 
     
    876876      if (ExpandHeap(size == 0 ? 1UL : size) == WizardFalse) 
    877877        { 
    878           UnlockSemaphoreInfo(memory_semaphore); 
     878          (void) UnlockSemaphoreInfo(memory_semaphore); 
    879879          memory=RelinquishWizardMemory(memory); 
    880880          ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed"); 
     
    883883      assert(block != (void *) NULL); 
    884884    } 
    885   UnlockSemaphoreInfo(memory_semaphore); 
     885  (void) UnlockSemaphoreInfo(memory_semaphore); 
    886886  memory=RelinquishWizardMemory(memory); 
    887887#endif 
  • WizardsToolkit/trunk/wizard/mime.c

    r454 r459  
    201201  mime_info=(const MimeInfo *) NULL; 
    202202  lsb_first=1; 
    203   LockSemaphoreInfo(mime_semaphore); 
     203  (void) LockSemaphoreInfo(mime_semaphore); 
    204204  ResetLinkedListIterator(mime_list); 
    205205  p=(const MimeInfo *) GetNextValueInLinkedList(mime_list); 
     
    325325    (void) InsertValueInLinkedList(mime_list,0, 
    326326      RemoveElementByValueFromLinkedList(mime_list,p)); 
    327   UnlockSemaphoreInfo(mime_semaphore); 
     327  (void) UnlockSemaphoreInfo(mime_semaphore); 
    328328  return(mime_info); 
    329329} 
     
    409409    Generate mime list. 
    410410  */ 
    411   LockSemaphoreInfo(mime_semaphore); 
     411  (void) LockSemaphoreInfo(mime_semaphore); 
    412412  ResetLinkedListIterator(mime_list); 
    413413  p=(const MimeInfo *) GetNextValueInLinkedList(mime_list); 
     
    419419    p=(const MimeInfo *) GetNextValueInLinkedList(mime_list); 
    420420  } 
    421   UnlockSemaphoreInfo(mime_semaphore); 
     421  (void) UnlockSemaphoreInfo(mime_semaphore); 
    422422  qsort((void *) aliases,(size_t) i,sizeof(*aliases),MimeInfoCompare); 
    423423  aliases[i]=(MimeInfo *) NULL; 
     
    501501  if (aliases == (char **) NULL) 
    502502    return((char **) NULL); 
    503   LockSemaphoreInfo(mime_semaphore); 
     503  (void) LockSemaphoreInfo(mime_semaphore); 
    504504  ResetLinkedListIterator(mime_list); 
    505505  p=(const MimeInfo *) GetNextValueInLinkedList(mime_list); 
     
    511511    p=(const MimeInfo *) GetNextValueInLinkedList(mime_list); 
    512512  } 
    513   UnlockSemaphoreInfo(mime_semaphore); 
     513  (void) UnlockSemaphoreInfo(mime_semaphore); 
    514514  qsort((void *) aliases,(size_t) i,sizeof(*aliases),MimeCompare); 
    515515  aliases[i]=(char *) NULL; 
     
    607607      if (mime_semaphore == (SemaphoreInfo *) NULL) 
    608608        AcquireSemaphoreInfo(&mime_semaphore); 
    609       LockSemaphoreInfo(mime_semaphore); 
     609      (void) LockSemaphoreInfo(mime_semaphore); 
    610610      if ((mime_list == (LinkedListInfo *) NULL) && 
    611611          (instantiate_mime == WizardFalse)) 
     
    614614          instantiate_mime=WizardTrue; 
    615615        } 
    616       UnlockSemaphoreInfo(mime_semaphore); 
     616      (void) UnlockSemaphoreInfo(mime_semaphore); 
    617617    } 
    618618  return(mime_list != (LinkedListInfo *) NULL ? WizardTrue : WizardFalse); 
     
    10481048  if (mime_semaphore == (SemaphoreInfo *) NULL) 
    10491049    AcquireSemaphoreInfo(&mime_semaphore); 
    1050   LockSemaphoreInfo(mime_semaphore); 
     1050  (void) LockSemaphoreInfo(mime_semaphore); 
    10511051  if (mime_list != (LinkedListInfo *) NULL) 
    10521052    mime_list=DestroyLinkedList(mime_list,DestroyMimeElement); 
    10531053  instantiate_mime=WizardFalse; 
    1054   UnlockSemaphoreInfo(mime_semaphore); 
     1054  (void) UnlockSemaphoreInfo(mime_semaphore); 
    10551055  DestroySemaphoreInfo(&mime_semaphore); 
    10561056} 
  • WizardsToolkit/trunk/wizard/resource.c

    r452 r459  
    322322  if (resource_semaphore == (SemaphoreInfo *) NULL) 
    323323    AcquireSemaphoreInfo(&resource_semaphore); 
    324   LockSemaphoreInfo(resource_semaphore); 
     324  (void) LockSemaphoreInfo(resource_semaphore); 
    325325  if (temporary_resources == (SplayTreeInfo *) NULL) 
    326326    temporary_resources=NewSplayTree(CompareSplayTreeString, 
    327327      RelinquishWizardMemory,DestroyTemporaryResources); 
    328   UnlockSemaphoreInfo(resource_semaphore); 
     328  (void) UnlockSemaphoreInfo(resource_semaphore); 
    329329  resource=ConstantString(filename); 
    330330  (void) AddValueToSplayTree(temporary_resources,resource,resource); 
     
    377377  if (resource_semaphore == (SemaphoreInfo *) NULL) 
    378378    AcquireSemaphoreInfo(&resource_semaphore); 
    379   LockSemaphoreInfo(resource_semaphore); 
     379  (void) LockSemaphoreInfo(resource_semaphore); 
    380380  switch (type) 
    381381  { 
     
    443443      break; 
    444444  } 
    445   UnlockSemaphoreInfo(resource_semaphore); 
     445  (void) UnlockSemaphoreInfo(resource_semaphore); 
    446446  (void) LogWizardEvent(ResourceEvent,GetWizardModule(),"%s: %s/%s/%s", 
    447447    WizardOptionToMnemonic(WizardResourceOptions,(long) type),resource_request, 
     
    521521  if (resource_semaphore == (SemaphoreInfo *) NULL) 
    522522    AcquireSemaphoreInfo(&resource_semaphore); 
    523   LockSemaphoreInfo(resource_semaphore); 
     523  (void) LockSemaphoreInfo(resource_semaphore); 
    524524  switch (type) 
    525525  { 
     
    552552      break; 
    553553  } 
    554   UnlockSemaphoreInfo(resource_semaphore); 
     554  (void) UnlockSemaphoreInfo(resource_semaphore); 
    555555  return(resource); 
    556556} 
     
    586586  if (resource_semaphore == (SemaphoreInfo *) NULL) 
    587587    AcquireSemaphoreInfo(&resource_semaphore); 
    588   LockSemaphoreInfo(resource_semaphore); 
     588  (void) LockSemaphoreInfo(resource_semaphore); 
    589589  switch (type) 
    590590  { 
     
    617617      break; 
    618618  } 
    619   UnlockSemaphoreInfo(resource_semaphore); 
     619  (void) UnlockSemaphoreInfo(resource_semaphore); 
    620620  return(resource); 
    621621} 
     
    659659  if (resource_semaphore == (SemaphoreInfo *) NULL) 
    660660    AcquireSemaphoreInfo(&resource_semaphore); 
    661   LockSemaphoreInfo(resource_semaphore); 
     661  (void) LockSemaphoreInfo(resource_semaphore); 
    662662  (void) FormatWizardSize(resource_info.area_limit,area_limit); 
    663663  (void) FormatWizardSize(resource_info.disk_limit,disk_limit); 
     
    669669    resource_info.file_limit,area_limit,memory_limit,map_limit,disk_limit); 
    670670  (void) fflush(file); 
    671   UnlockSemaphoreInfo(resource_semaphore); 
     671  (void) UnlockSemaphoreInfo(resource_semaphore); 
    672672  return(WizardTrue); 
    673673} 
     
    709709  if (resource_semaphore == (SemaphoreInfo *) NULL) 
    710710    AcquireSemaphoreInfo(&resource_semaphore); 
    711   LockSemaphoreInfo(resource_semaphore); 
     711  (void) LockSemaphoreInfo(resource_semaphore); 
    712712  switch (type) 
    713713  { 
     
    756756      break; 
    757757  } 
    758   UnlockSemaphoreInfo(resource_semaphore); 
     758  (void) UnlockSemaphoreInfo(resource_semaphore); 
    759759  (void) LogWizardEvent(ResourceEvent,GetWizardModule(),"%s: %s/%s/%s", 
    760760    WizardOptionToMnemonic(WizardResourceOptions,(long) type),resource_request, 
     
    939939  if (resource_semaphore == (SemaphoreInfo *) NULL) 
    940940    AcquireSemaphoreInfo(&resource_semaphore); 
    941   LockSemaphoreInfo(resource_semaphore); 
     941  (void) LockSemaphoreInfo(resource_semaphore); 
    942942  if (temporary_resources != (SplayTreeInfo *) NULL) 
    943943    temporary_resources=DestroySplayTree(temporary_resources); 
    944   UnlockSemaphoreInfo(resource_semaphore); 
     944  (void) UnlockSemaphoreInfo(resource_semaphore); 
    945945  DestroySemaphoreInfo(&resource_semaphore); 
    946946} 
     
    976976  if (resource_semaphore == (SemaphoreInfo *) NULL) 
    977977    AcquireSemaphoreInfo(&resource_semaphore); 
    978   LockSemaphoreInfo(resource_semaphore); 
     978  (void) LockSemaphoreInfo(resource_semaphore); 
    979979  switch (type) 
    980980  { 
     
    10071007      break; 
    10081008  } 
    1009   UnlockSemaphoreInfo(resource_semaphore); 
     1009  (void) UnlockSemaphoreInfo(resource_semaphore); 
    10101010  return(WizardTrue); 
    10111011} 
  • WizardsToolkit/trunk/wizard/semaphore.h

    r445 r459  
    3636 
    3737extern WizardExport WizardBooleanType 
    38   LockSemaphoreInfo(SemaphoreInfo *), 
     38  (void) LockSemaphoreInfo(SemaphoreInfo *), 
    3939  SemaphoreComponentGenesis(void), 
    40   UnlockSemaphoreInfo(SemaphoreInfo *); 
     40  (void) UnlockSemaphoreInfo(SemaphoreInfo *); 
    4141 
    4242#if defined(__cplusplus) || defined(c_plusplus)