Changeset 460
- Timestamp:
- 10/25/09 14:29:37 (4 weeks ago)
- Location:
- ImageMagick/trunk
- Files:
-
- 23 modified
-
coders/png.c (modified) (10 diffs)
-
coders/tiff.c (modified) (3 diffs)
-
magick/cache.c (modified) (9 diffs)
-
magick/coder.c (modified) (7 diffs)
-
magick/color.c (modified) (9 diffs)
-
magick/configure.c (modified) (9 diffs)
-
magick/constitute.c (modified) (6 diffs)
-
magick/delegate.c (modified) (9 diffs)
-
magick/deprecate.c (modified) (1 diff)
-
magick/exception.c (modified) (8 diffs)
-
magick/image.c (modified) (2 diffs)
-
magick/locale.c (modified) (7 diffs)
-
magick/log.c (modified) (18 diffs)
-
magick/magic.c (modified) (9 diffs)
-
magick/magick.c (modified) (14 diffs)
-
magick/memory.c (modified) (9 diffs)
-
magick/mime.c (modified) (9 diffs)
-
magick/module.c (modified) (7 diffs)
-
magick/policy.c (modified) (11 diffs)
-
magick/registry.c (modified) (4 diffs)
-
magick/resource.c (modified) (14 diffs)
-
magick/type.c (modified) (11 diffs)
-
wand/wand.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/trunk/coders/png.c
r453 r460 1704 1704 1705 1705 #if defined(PNG_SETJMP_NOT_THREAD_SAFE) 1706 LockSemaphoreInfo(png_semaphore);1706 (void) LockSemaphoreInfo(png_semaphore); 1707 1707 #endif 1708 1708 … … 1749 1749 png_destroy_read_struct(&ping,&ping_info,&end_info); 1750 1750 #if defined(PNG_SETJMP_NOT_THREAD_SAFE) 1751 UnlockSemaphoreInfo(png_semaphore);1751 (void) UnlockSemaphoreInfo(png_semaphore); 1752 1752 #endif 1753 1753 if (logging != MagickFalse) … … 2249 2249 png_destroy_read_struct(&ping,&ping_info,&end_info); 2250 2250 #if defined(PNG_SETJMP_NOT_THREAD_SAFE) 2251 UnlockSemaphoreInfo(png_semaphore);2251 (void) UnlockSemaphoreInfo(png_semaphore); 2252 2252 #endif 2253 2253 if (logging != MagickFalse) … … 2280 2280 png_destroy_read_struct(&ping,&ping_info,&end_info); 2281 2281 #if defined(PNG_SETJMP_NOT_THREAD_SAFE) 2282 UnlockSemaphoreInfo(png_semaphore);2282 (void) UnlockSemaphoreInfo(png_semaphore); 2283 2283 #endif 2284 2284 if (quantum_info != (QuantumInfo *) NULL) … … 2636 2636 (void) SetImageBackgroundColor(image); 2637 2637 #if defined(PNG_SETJMP_NOT_THREAD_SAFE) 2638 UnlockSemaphoreInfo(png_semaphore);2638 (void) UnlockSemaphoreInfo(png_semaphore); 2639 2639 #endif 2640 2640 if (logging != MagickFalse) … … 2841 2841 png_pixels=(unsigned char *) RelinquishMagickMemory(png_pixels); 2842 2842 #if defined(PNG_SETJMP_NOT_THREAD_SAFE) 2843 UnlockSemaphoreInfo(png_semaphore);2843 (void) UnlockSemaphoreInfo(png_semaphore); 2844 2844 #endif 2845 2845 … … 6275 6275 6276 6276 #if defined(PNG_SETJMP_NOT_THREAD_SAFE) 6277 LockSemaphoreInfo(png_semaphore);6277 (void) LockSemaphoreInfo(png_semaphore); 6278 6278 #endif 6279 6279 … … 6322 6322 png_destroy_write_struct(&ping,&ping_info); 6323 6323 #if defined(PNG_SETJMP_NOT_THREAD_SAFE) 6324 UnlockSemaphoreInfo(png_semaphore);6324 (void) UnlockSemaphoreInfo(png_semaphore); 6325 6325 #endif 6326 6326 return(MagickFalse); … … 7425 7425 png_pixels=(unsigned char *) RelinquishMagickMemory(png_pixels); 7426 7426 #if defined(PNG_SETJMP_NOT_THREAD_SAFE) 7427 UnlockSemaphoreInfo(png_semaphore);7427 (void) UnlockSemaphoreInfo(png_semaphore); 7428 7428 #endif 7429 7429 return(MagickFalse); … … 7781 7781 7782 7782 #if defined(PNG_SETJMP_NOT_THREAD_SAFE) 7783 UnlockSemaphoreInfo(png_semaphore);7783 (void) UnlockSemaphoreInfo(png_semaphore); 7784 7784 #endif 7785 7785 -
ImageMagick/trunk/coders/tiff.c
r453 r460 1663 1663 if (tiff_semaphore == (SemaphoreInfo *) NULL) 1664 1664 tiff_semaphore=AllocateSemaphoreInfo(); 1665 LockSemaphoreInfo(tiff_semaphore);1665 (void) LockSemaphoreInfo(tiff_semaphore); 1666 1666 if (instantiate_key == MagickFalse) 1667 1667 { … … 1670 1670 instantiate_key=MagickTrue; 1671 1671 } 1672 UnlockSemaphoreInfo(tiff_semaphore);1672 (void) UnlockSemaphoreInfo(tiff_semaphore); 1673 1673 *version='\0'; 1674 1674 #if defined(TIFF_VERSION) … … 1785 1785 (void) UnregisterMagickInfo("TIFF"); 1786 1786 (void) UnregisterMagickInfo("TIFF64"); 1787 LockSemaphoreInfo(tiff_semaphore);1787 (void) LockSemaphoreInfo(tiff_semaphore); 1788 1788 if (instantiate_key != MagickFalse) 1789 1789 if (MagickDeleteThreadKey(tiff_exception) == MagickFalse) 1790 1790 ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed"); 1791 1791 instantiate_key=MagickFalse; 1792 UnlockSemaphoreInfo(tiff_semaphore);1792 (void) UnlockSemaphoreInfo(tiff_semaphore); 1793 1793 DestroySemaphoreInfo(&tiff_semaphore); 1794 1794 } -
ImageMagick/trunk/magick/cache.c
r455 r460 206 206 if (cache_semaphore == (SemaphoreInfo *) NULL) 207 207 AcquireSemaphoreInfo(&cache_semaphore); 208 LockSemaphoreInfo(cache_semaphore);208 (void) LockSemaphoreInfo(cache_semaphore); 209 209 if ((cache_resources == (SplayTreeInfo *) NULL) && 210 210 (instantiate_cache == MagickFalse)) … … 214 214 instantiate_cache=MagickTrue; 215 215 } 216 UnlockSemaphoreInfo(cache_semaphore);216 (void) UnlockSemaphoreInfo(cache_semaphore); 217 217 } 218 218 (void) AddValueToSplayTree(cache_resources,cache_info,cache_info); … … 313 313 if (cache_semaphore == (SemaphoreInfo *) NULL) 314 314 AcquireSemaphoreInfo(&cache_semaphore); 315 LockSemaphoreInfo(cache_semaphore);315 (void) LockSemaphoreInfo(cache_semaphore); 316 316 if (cache_resources != (SplayTreeInfo *) NULL) 317 317 cache_resources=DestroySplayTree(cache_resources); 318 318 instantiate_cache=MagickFalse; 319 UnlockSemaphoreInfo(cache_semaphore);319 (void) UnlockSemaphoreInfo(cache_semaphore); 320 320 DestroySemaphoreInfo(&cache_semaphore); 321 321 } … … 602 602 status; 603 603 604 LockSemaphoreInfo(cache_info->disk_semaphore);604 (void) LockSemaphoreInfo(cache_info->disk_semaphore); 605 605 status=close(cache_info->file); 606 606 cache_info->file=(-1); 607 607 RelinquishMagickResource(FileResource,1); 608 UnlockSemaphoreInfo(cache_info->disk_semaphore);608 (void) UnlockSemaphoreInfo(cache_info->disk_semaphore); 609 609 return(status == -1 ? MagickFalse : MagickTrue); 610 610 } … … 621 621 if (GetMagickResource(FileResource) < GetMagickResourceLimit(FileResource)) 622 622 return; 623 LockSemaphoreInfo(cache_semaphore);623 (void) LockSemaphoreInfo(cache_semaphore); 624 624 if (cache_resources == (SplayTreeInfo *) NULL) 625 625 { 626 UnlockSemaphoreInfo(cache_semaphore);626 (void) UnlockSemaphoreInfo(cache_semaphore); 627 627 return; 628 628 } … … 650 650 if (q != (CacheInfo *) NULL) 651 651 (void) ClosePixelCacheOnDisk(q); /* relinquish least recently used cache */ 652 UnlockSemaphoreInfo(cache_semaphore);652 (void) UnlockSemaphoreInfo(cache_semaphore); 653 653 } 654 654 … … 678 678 Open pixel cache on disk. 679 679 */ 680 LockSemaphoreInfo(cache_info->disk_semaphore);680 (void) LockSemaphoreInfo(cache_info->disk_semaphore); 681 681 if (cache_info->file != -1) 682 682 { 683 UnlockSemaphoreInfo(cache_info->disk_semaphore);683 (void) UnlockSemaphoreInfo(cache_info->disk_semaphore); 684 684 return(MagickTrue); /* cache already open */ 685 685 } … … 715 715 if (file == -1) 716 716 { 717 UnlockSemaphoreInfo(cache_info->disk_semaphore);717 (void) UnlockSemaphoreInfo(cache_info->disk_semaphore); 718 718 return(MagickFalse); 719 719 } … … 721 721 cache_info->file=file; 722 722 cache_info->timestamp=time(0); 723 UnlockSemaphoreInfo(cache_info->disk_semaphore);723 (void) UnlockSemaphoreInfo(cache_info->disk_semaphore); 724 724 return(MagickTrue); 725 725 } -
ImageMagick/trunk/magick/coder.c
r455 r460 283 283 if (coder_semaphore == (SemaphoreInfo *) NULL) 284 284 AcquireSemaphoreInfo(&coder_semaphore); 285 LockSemaphoreInfo(coder_semaphore);285 (void) LockSemaphoreInfo(coder_semaphore); 286 286 if (coder_list != (SplayTreeInfo *) NULL) 287 287 coder_list=DestroySplayTree(coder_list); 288 288 instantiate_coder=MagickFalse; 289 UnlockSemaphoreInfo(coder_semaphore);289 (void) UnlockSemaphoreInfo(coder_semaphore); 290 290 DestroySemaphoreInfo(&coder_semaphore); 291 291 } … … 404 404 Generate coder list. 405 405 */ 406 LockSemaphoreInfo(coder_semaphore);406 (void) LockSemaphoreInfo(coder_semaphore); 407 407 ResetSplayTreeIterator(coder_list); 408 408 p=(const CoderInfo *) GetNextValueInSplayTree(coder_list); … … 414 414 p=(const CoderInfo *) GetNextValueInSplayTree(coder_list); 415 415 } 416 UnlockSemaphoreInfo(coder_semaphore);416 (void) UnlockSemaphoreInfo(coder_semaphore); 417 417 qsort((void *) coder_map,(size_t) i,sizeof(*coder_map),CoderInfoCompare); 418 418 coder_map[i]=(CoderInfo *) NULL; … … 489 489 Generate coder list. 490 490 */ 491 LockSemaphoreInfo(coder_semaphore);491 (void) LockSemaphoreInfo(coder_semaphore); 492 492 ResetSplayTreeIterator(coder_list); 493 493 p=(const CoderInfo *) GetNextValueInSplayTree(coder_list); … … 499 499 p=(const CoderInfo *) GetNextValueInSplayTree(coder_list); 500 500 } 501 UnlockSemaphoreInfo(coder_semaphore);501 (void) UnlockSemaphoreInfo(coder_semaphore); 502 502 qsort((void *) coder_map,(size_t) i,sizeof(*coder_map),CoderCompare); 503 503 coder_map[i]=(char *) NULL; … … 535 535 if (coder_semaphore == (SemaphoreInfo *) NULL) 536 536 AcquireSemaphoreInfo(&coder_semaphore); 537 LockSemaphoreInfo(coder_semaphore);537 (void) LockSemaphoreInfo(coder_semaphore); 538 538 if ((coder_list == (SplayTreeInfo *) NULL) && 539 539 (instantiate_coder == MagickFalse)) … … 542 542 instantiate_coder=MagickTrue; 543 543 } 544 UnlockSemaphoreInfo(coder_semaphore);544 (void) UnlockSemaphoreInfo(coder_semaphore); 545 545 } 546 546 return(coder_list != (SplayTreeInfo *) NULL ? MagickTrue : MagickFalse); -
ImageMagick/trunk/magick/color.c
r455 r460 862 862 if (color_semaphore == (SemaphoreInfo *) NULL) 863 863 AcquireSemaphoreInfo(&color_semaphore); 864 LockSemaphoreInfo(color_semaphore);864 (void) LockSemaphoreInfo(color_semaphore); 865 865 if (color_list != (LinkedListInfo *) NULL) 866 866 color_list=DestroyLinkedList(color_list,DestroyColorElement); 867 867 instantiate_color=MagickFalse; 868 UnlockSemaphoreInfo(color_semaphore);868 (void) UnlockSemaphoreInfo(color_semaphore); 869 869 DestroySemaphoreInfo(&color_semaphore); 870 870 } … … 935 935 Search for color tag. 936 936 */ 937 LockSemaphoreInfo(color_semaphore);937 (void) LockSemaphoreInfo(color_semaphore); 938 938 ResetLinkedListIterator(color_list); 939 939 p=(const ColorInfo *) GetNextValueInLinkedList(color_list); … … 950 950 (void) InsertValueInLinkedList(color_list,0, 951 951 RemoveElementByValueFromLinkedList(color_list,p)); 952 UnlockSemaphoreInfo(color_semaphore);952 (void) UnlockSemaphoreInfo(color_semaphore); 953 953 return(p); 954 954 } … … 1149 1149 Generate color list. 1150 1150 */ 1151 LockSemaphoreInfo(color_semaphore);1151 (void) LockSemaphoreInfo(color_semaphore); 1152 1152 ResetLinkedListIterator(color_list); 1153 1153 p=(const ColorInfo *) GetNextValueInLinkedList(color_list); … … 1159 1159 p=(const ColorInfo *) GetNextValueInLinkedList(color_list); 1160 1160 } 1161 UnlockSemaphoreInfo(color_semaphore);1161 (void) UnlockSemaphoreInfo(color_semaphore); 1162 1162 qsort((void *) colors,(size_t) i,sizeof(*colors),ColorInfoCompare); 1163 1163 colors[i]=(ColorInfo *) NULL; … … 1242 1242 Generate color list. 1243 1243 */ 1244 LockSemaphoreInfo(color_semaphore);1244 (void) LockSemaphoreInfo(color_semaphore); 1245 1245 ResetLinkedListIterator(color_list); 1246 1246 p=(const ColorInfo *) GetNextValueInLinkedList(color_list); … … 1252 1252 p=(const ColorInfo *) GetNextValueInLinkedList(color_list); 1253 1253 } 1254 UnlockSemaphoreInfo(color_semaphore);1254 (void) UnlockSemaphoreInfo(color_semaphore); 1255 1255 qsort((void *) colors,(size_t) i,sizeof(*colors),ColorCompare); 1256 1256 colors[i]=(char *) NULL; … … 1459 1459 if (color_semaphore == (SemaphoreInfo *) NULL) 1460 1460 AcquireSemaphoreInfo(&color_semaphore); 1461 LockSemaphoreInfo(color_semaphore);1461 (void) LockSemaphoreInfo(color_semaphore); 1462 1462 if ((color_list == (LinkedListInfo *) NULL) && 1463 1463 (instantiate_color == MagickFalse)) … … 1466 1466 instantiate_color=MagickTrue; 1467 1467 } 1468 UnlockSemaphoreInfo(color_semaphore);1468 (void) UnlockSemaphoreInfo(color_semaphore); 1469 1469 } 1470 1470 return(color_list != (LinkedListInfo *) NULL ? MagickTrue : MagickFalse); -
ImageMagick/trunk/magick/configure.c
r455 r460 162 162 if (configure_semaphore == (SemaphoreInfo *) NULL) 163 163 AcquireSemaphoreInfo(&configure_semaphore); 164 LockSemaphoreInfo(configure_semaphore);164 (void) LockSemaphoreInfo(configure_semaphore); 165 165 if (configure_list != (LinkedListInfo *) NULL) 166 166 configure_list=DestroyLinkedList(configure_list,DestroyConfigureElement); 167 167 configure_list=(LinkedListInfo *) NULL; 168 168 instantiate_configure=MagickFalse; 169 UnlockSemaphoreInfo(configure_semaphore);169 (void) UnlockSemaphoreInfo(configure_semaphore); 170 170 DestroySemaphoreInfo(&configure_semaphore); 171 171 } … … 255 255 Search for configure tag. 256 256 */ 257 LockSemaphoreInfo(configure_semaphore);257 (void) LockSemaphoreInfo(configure_semaphore); 258 258 ResetLinkedListIterator(configure_list); 259 259 p=(const ConfigureInfo *) GetNextValueInLinkedList(configure_list); … … 267 267 (void) InsertValueInLinkedList(configure_list,0, 268 268 RemoveElementByValueFromLinkedList(configure_list,p)); 269 UnlockSemaphoreInfo(configure_semaphore);269 (void) UnlockSemaphoreInfo(configure_semaphore); 270 270 return(p); 271 271 } … … 351 351 Generate configure list. 352 352 */ 353 LockSemaphoreInfo(configure_semaphore);353 (void) LockSemaphoreInfo(configure_semaphore); 354 354 ResetLinkedListIterator(configure_list); 355 355 p=(const ConfigureInfo *) GetNextValueInLinkedList(configure_list); … … 361 361 p=(const ConfigureInfo *) GetNextValueInLinkedList(configure_list); 362 362 } 363 UnlockSemaphoreInfo(configure_semaphore);363 (void) UnlockSemaphoreInfo(configure_semaphore); 364 364 qsort((void *) options,(size_t) i,sizeof(*options),ConfigureInfoCompare); 365 365 options[i]=(ConfigureInfo *) NULL; … … 442 442 if (options == (char **) NULL) 443 443 return((char **) NULL); 444 LockSemaphoreInfo(configure_semaphore);444 (void) LockSemaphoreInfo(configure_semaphore); 445 445 ResetLinkedListIterator(configure_list); 446 446 p=(const ConfigureInfo *) GetNextValueInLinkedList(configure_list); … … 452 452 p=(const ConfigureInfo *) GetNextValueInLinkedList(configure_list); 453 453 } 454 UnlockSemaphoreInfo(configure_semaphore);454 (void) UnlockSemaphoreInfo(configure_semaphore); 455 455 qsort((void *) options,(size_t) i,sizeof(*options),ConfigureCompare); 456 456 options[i]=(char *) NULL; … … 871 871 if (configure_semaphore == (SemaphoreInfo *) NULL) 872 872 AcquireSemaphoreInfo(&configure_semaphore); 873 LockSemaphoreInfo(configure_semaphore);873 (void) LockSemaphoreInfo(configure_semaphore); 874 874 if ((configure_list == (LinkedListInfo *) NULL) && 875 875 (instantiate_configure == MagickFalse)) … … 878 878 instantiate_configure=MagickTrue; 879 879 } 880 UnlockSemaphoreInfo(configure_semaphore);880 (void) UnlockSemaphoreInfo(configure_semaphore); 881 881 } 882 882 return(configure_list != (LinkedListInfo *) NULL ? MagickTrue : MagickFalse); -
ImageMagick/trunk/magick/constitute.c
r455 r460 518 518 thread_support=GetMagickThreadSupport(magick_info); 519 519 if ((thread_support & DecoderThreadSupport) == 0) 520 LockSemaphoreInfo(constitute_semaphore);520 (void) LockSemaphoreInfo(constitute_semaphore); 521 521 image=GetImageDecoder(magick_info)(read_info,exception); 522 522 if ((thread_support & DecoderThreadSupport) == 0) 523 UnlockSemaphoreInfo(constitute_semaphore);523 (void) UnlockSemaphoreInfo(constitute_semaphore); 524 524 } 525 525 else … … 550 550 *read_info->filename='\0'; 551 551 if (GetDelegateThreadSupport(delegate_info) == MagickFalse) 552 LockSemaphoreInfo(constitute_semaphore);552 (void) LockSemaphoreInfo(constitute_semaphore); 553 553 (void) InvokeDelegate(read_info,image,read_info->magick,(char *) NULL, 554 554 exception); 555 555 if (GetDelegateThreadSupport(delegate_info) == MagickFalse) 556 UnlockSemaphoreInfo(constitute_semaphore);556 (void) UnlockSemaphoreInfo(constitute_semaphore); 557 557 image=DestroyImageList(image); 558 558 read_info->temporary=MagickTrue; … … 574 574 thread_support=GetMagickThreadSupport(magick_info); 575 575 if ((thread_support & DecoderThreadSupport) == 0) 576 LockSemaphoreInfo(constitute_semaphore);576 (void) LockSemaphoreInfo(constitute_semaphore); 577 577 image=(Image *) (GetImageDecoder(magick_info))(read_info,exception); 578 578 if ((thread_support & DecoderThreadSupport) == 0) 579 UnlockSemaphoreInfo(constitute_semaphore);579 (void) UnlockSemaphoreInfo(constitute_semaphore); 580 580 } 581 581 if (read_info->temporary != MagickFalse) … … 1105 1105 thread_support=GetMagickThreadSupport(magick_info); 1106 1106 if ((thread_support & EncoderThreadSupport) == 0) 1107 LockSemaphoreInfo(constitute_semaphore);1107 (void) LockSemaphoreInfo(constitute_semaphore); 1108 1108 status=GetImageEncoder(magick_info)(write_info,image); 1109 1109 if ((thread_support & EncoderThreadSupport) == 0) 1110 UnlockSemaphoreInfo(constitute_semaphore);1110 (void) UnlockSemaphoreInfo(constitute_semaphore); 1111 1111 } 1112 1112 else … … 1121 1121 *write_info->filename='\0'; 1122 1122 if (GetDelegateThreadSupport(delegate_info) == MagickFalse) 1123 LockSemaphoreInfo(constitute_semaphore);1123 (void) LockSemaphoreInfo(constitute_semaphore); 1124 1124 status=InvokeDelegate(write_info,image,(char *) NULL, 1125 1125 write_info->magick,&image->exception); 1126 1126 if (GetDelegateThreadSupport(delegate_info) == MagickFalse) 1127 UnlockSemaphoreInfo(constitute_semaphore);1127 (void) UnlockSemaphoreInfo(constitute_semaphore); 1128 1128 (void) CopyMagickString(image->filename,filename,MaxTextExtent); 1129 1129 } … … 1152 1152 thread_support=GetMagickThreadSupport(magick_info); 1153 1153 if ((thread_support & EncoderThreadSupport) == 0) 1154 LockSemaphoreInfo(constitute_semaphore);1154 (void) LockSemaphoreInfo(constitute_semaphore); 1155 1155 status=GetImageEncoder(magick_info)(write_info,image); 1156 1156 if ((thread_support & EncoderThreadSupport) == 0) 1157 UnlockSemaphoreInfo(constitute_semaphore);1157 (void) UnlockSemaphoreInfo(constitute_semaphore); 1158 1158 } 1159 1159 } -
ImageMagick/trunk/magick/delegate.c
r455 r460 212 212 if (delegate_semaphore == (SemaphoreInfo *) NULL) 213 213 AcquireSemaphoreInfo(&delegate_semaphore); 214 LockSemaphoreInfo(delegate_semaphore);214 (void) LockSemaphoreInfo(delegate_semaphore); 215 215 if (delegate_list != (LinkedListInfo *) NULL) 216 216 delegate_list=DestroyLinkedList(delegate_list,DestroyDelegate); 217 217 instantiate_delegate=MagickFalse; 218 UnlockSemaphoreInfo(delegate_semaphore);218 (void) UnlockSemaphoreInfo(delegate_semaphore); 219 219 DestroySemaphoreInfo(&delegate_semaphore); 220 220 } … … 382 382 Search for named delegate. 383 383 */ 384 LockSemaphoreInfo(delegate_semaphore);384 (void) LockSemaphoreInfo(delegate_semaphore); 385 385 ResetLinkedListIterator(delegate_list); 386 386 p=(const DelegateInfo *) GetNextValueInLinkedList(delegate_list); … … 415 415 (void) InsertValueInLinkedList(delegate_list,0, 416 416 RemoveElementByValueFromLinkedList(delegate_list,p)); 417 UnlockSemaphoreInfo(delegate_semaphore);417 (void) UnlockSemaphoreInfo(delegate_semaphore); 418 418 return(p); 419 419 } … … 506 506 Generate delegate list. 507 507 */ 508 LockSemaphoreInfo(delegate_semaphore);508 (void) LockSemaphoreInfo(delegate_semaphore); 509 509 ResetLinkedListIterator(delegate_list); 510 510 p=(const DelegateInfo *) GetNextValueInLinkedList(delegate_list); … … 517 517 p=(const DelegateInfo *) GetNextValueInLinkedList(delegate_list); 518 518 } 519 UnlockSemaphoreInfo(delegate_semaphore);519 (void) UnlockSemaphoreInfo(delegate_semaphore); 520 520 qsort((void *) delegates,(size_t) i,sizeof(*delegates),DelegateInfoCompare); 521 521 delegates[i]=(DelegateInfo *) NULL; … … 599 599 if (delegates == (char **) NULL) 600 600 return((char **) NULL); 601 LockSemaphoreInfo(delegate_semaphore);601 (void) LockSemaphoreInfo(delegate_semaphore); 602 602 ResetLinkedListIterator(delegate_list); 603 603 p=(const DelegateInfo *) GetNextValueInLinkedList(delegate_list); … … 612 612 p=(const DelegateInfo *) GetNextValueInLinkedList(delegate_list); 613 613 } 614 UnlockSemaphoreInfo(delegate_semaphore);614 (void) UnlockSemaphoreInfo(delegate_semaphore); 615 615 qsort((void *) delegates,(size_t) i,sizeof(*delegates),DelegateCompare); 616 616 delegates[i]=(char *) NULL; … … 711 711 if (delegate_semaphore == (SemaphoreInfo *) NULL) 712 712 AcquireSemaphoreInfo(&delegate_semaphore); 713 LockSemaphoreInfo(delegate_semaphore);713 (void) LockSemaphoreInfo(delegate_semaphore); 714 714 if ((delegate_list == (LinkedListInfo *) NULL) && 715 715 (instantiate_delegate == MagickFalse)) … … 718 718 instantiate_delegate=MagickTrue; 719 719 } 720 UnlockSemaphoreInfo(delegate_semaphore);720 (void) UnlockSemaphoreInfo(delegate_semaphore); 721 721 } 722 722 return(delegate_list != (LinkedListInfo *) NULL ? MagickTrue : MagickFalse); -
ImageMagick/trunk/magick/deprecate.c
r453 r460 3759 3759 { 3760 3760 (void) LogMagickEvent(DeprecateEvent,GetMagickModule(),"last use: v5.5.7"); 3761 UnlockSemaphoreInfo(*semaphore_info);3761 (void) UnlockSemaphoreInfo(*semaphore_info); 3762 3762 } 3763 3763 -
ImageMagick/trunk/magick/exception.c
r453 r460 159 159 if (exception->exceptions == (void *) NULL) 160 160 return; 161 LockSemaphoreInfo(exception->semaphore);161 (void) LockSemaphoreInfo(exception->semaphore); 162 162 p=(ExceptionInfo *) RemoveLastElementFromLinkedList((LinkedListInfo *) 163 163 exception->exceptions); … … 171 171 exception->reason=(char *) NULL; 172 172 exception->description=(char *) NULL; 173 UnlockSemaphoreInfo(exception->semaphore);173 (void) UnlockSemaphoreInfo(exception->semaphore); 174 174 errno=0; 175 175 } … … 207 207 if (exception->exceptions == (void *) NULL) 208 208 return; 209 LockSemaphoreInfo(exception->semaphore);209 (void) LockSemaphoreInfo(exception->semaphore); 210 210 ResetLinkedListIterator((LinkedListInfo *) exception->exceptions); 211 211 p=(const ExceptionInfo *) GetNextValueInLinkedList((LinkedListInfo *) … … 222 222 exception->exceptions); 223 223 } 224 UnlockSemaphoreInfo(exception->semaphore);224 (void) UnlockSemaphoreInfo(exception->semaphore); 225 225 ClearMagickException(exception); 226 226 } … … 379 379 assert(exception != (ExceptionInfo *) NULL); 380 380 assert(exception->signature == MagickSignature); 381 LockSemaphoreInfo(exception->semaphore);381 (void) LockSemaphoreInfo(exception->semaphore); 382 382 exception->severity=UndefinedException; 383 383 if (exception->exceptions != (void *) NULL) … … 387 387 if (exception->relinquish != MagickFalse) 388 388 exception->signature=(~MagickSignature); 389 UnlockSemaphoreInfo(exception->semaphore);389 (void) UnlockSemaphoreInfo(exception->semaphore); 390 390 DestroySemaphoreInfo(&exception->semaphore); 391 391 if (relinquish != MagickFalse) … … 614 614 if (relative->exceptions == (void *) NULL) 615 615 return; 616 LockSemaphoreInfo(exception->semaphore);616 (void) LockSemaphoreInfo(exception->semaphore); 617 617 ResetLinkedListIterator((LinkedListInfo *) relative->exceptions); 618 618 p=(const ExceptionInfo *) GetNextValueInLinkedList((LinkedListInfo *) … … 624 624 relative->exceptions); 625 625 } 626 UnlockSemaphoreInfo(exception->semaphore);626 (void) UnlockSemaphoreInfo(exception->semaphore); 627 627 } 628 628 -
ImageMagick/trunk/magick/image.c
r453 r460 1628 1628 if (image->debug != MagickFalse) 1629 1629 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename); 1630 LockSemaphoreInfo(image->semaphore);1630 (void) LockSemaphoreInfo(image->semaphore); 1631 1631 reference_count=image->reference_count; 1632 UnlockSemaphoreInfo(image->semaphore);1632 (void) UnlockSemaphoreInfo(image->semaphore); 1633 1633 return(reference_count); 1634 1634 } … … 2067 2067 return(MagickTrue); 2068 2068 clone_image=CloneImage(*image,0,0,MagickTrue,exception); 2069 LockSemaphoreInfo((*image)->semaphore);2069 (void) LockSemaphoreInfo((*image)->semaphore); 2070 2070 (*image)->reference_count--; 2071 UnlockSemaphoreInfo((*image)->semaphore);2071 (void) UnlockSemaphoreInfo((*image)->semaphore); 2072 2072 *image=clone_image; 2073 2073 return(MagickTrue); -
ImageMagick/trunk/magick/locale.c
r455 r460 255 255 Generate locale list. 256 256 */ 257 LockSemaphoreInfo(locale_semaphore);257 (void) LockSemaphoreInfo(locale_semaphore); 258 258 ResetSplayTreeIterator(locale_list); 259 259 p=(const LocaleInfo *) GetNextValueInSplayTree(locale_list); … … 265 265 p=(const LocaleInfo *) GetNextValueInSplayTree(locale_list); 266 266 } 267 UnlockSemaphoreInfo(locale_semaphore);267 (void) UnlockSemaphoreInfo(locale_semaphore); 268 268 qsort((void *) messages,(size_t) i,sizeof(*messages),LocaleInfoCompare); 269 269 messages[i]=(LocaleInfo *) NULL; … … 347 347 if (messages == (char **) NULL) 348 348 return((char **) NULL); 349 LockSemaphoreInfo(locale_semaphore);349 (void) LockSemaphoreInfo(locale_semaphore); 350 350 p=(const LocaleInfo *) GetNextValueInSplayTree(locale_list); 351 351 for (i=0; p != (const LocaleInfo *) NULL; ) … … 356 356 p=(const LocaleInfo *) GetNextValueInSplayTree(locale_list); 357 357 } 358 UnlockSemaphoreInfo(locale_semaphore);358 (void) UnlockSemaphoreInfo(locale_semaphore); 359 359 qsort((void *) messages,(size_t) i,sizeof(*messages),LocaleTagCompare); 360 360 messages[i]=(char *) NULL; … … 552 552 if (locale_semaphore == (SemaphoreInfo *) NULL) 553 553 AcquireSemaphoreInfo(&locale_semaphore); 554 LockSemaphoreInfo(locale_semaphore);554 (void) LockSemaphoreInfo(locale_semaphore); 555 555 if ((locale_list == (SplayTreeInfo *) NULL) && 556 556 (instantiate_locale == MagickFalse)) … … 580 580 instantiate_locale=MagickTrue; 581 581 } 582 UnlockSemaphoreInfo(locale_semaphore);582 (void) UnlockSemaphoreInfo(locale_semaphore); 583 583 } 584 584 return(locale_list != (SplayTreeInfo *) NULL ? MagickTrue : MagickFalse); … … 1076 1076 if (locale_semaphore == (SemaphoreInfo *) NULL) 1077 1077 AcquireSemaphoreInfo(&locale_semaphore); 1078 LockSemaphoreInfo(locale_semaphore);1078 (void) LockSemaphoreInfo(locale_semaphore); 1079 1079 if (locale_list != (SplayTreeInfo *) NULL) 1080 1080 locale_list=DestroySplayTree(locale_list); 1081 1081 instantiate_locale=MagickFalse; 1082 UnlockSemaphoreInfo(locale_semaphore);1082 (void) UnlockSemaphoreInfo(locale_semaphore); 1083 1083 DestroySemaphoreInfo(&locale_semaphore); 1084 1084 } -
ImageMagick/trunk/magick/log.c
r455 r460 226 226 log_info=GetLogInfo("*",exception); 227 227 exception=DestroyExceptionInfo(exception); 228 LockSemaphoreInfo(log_semaphore);228 (void) LockSemaphoreInfo(log_semaphore); 229 229 if (log_info->file != (FILE *) NULL) 230 230 { … … 234 234 log_info->file=(FILE *) NULL; 235 235 } 236 UnlockSemaphoreInfo(log_semaphore);236 (void) UnlockSemaphoreInfo(log_semaphore); 237 237 } 238 238 … … 279 279 Search for log tag. 280 280 */ 281 LockSemaphoreInfo(log_semaphore);281 (void) LockSemaphoreInfo(log_semaphore); 282 282 ResetLinkedListIterator(log_list); 283 283 p=(LogInfo *) GetNextValueInLinkedList(log_list); … … 291 291 (void) InsertValueInLinkedList(log_list,0, 292 292 RemoveElementByValueFromLinkedList(log_list,p)); 293 UnlockSemaphoreInfo(log_semaphore);293 (void) UnlockSemaphoreInfo(log_semaphore); 294 294 return(p); 295 295 } … … 372 372 Generate log list. 373 373 */ 374 LockSemaphoreInfo(log_semaphore);374 (void) LockSemaphoreInfo(log_semaphore); 375 375 ResetLinkedListIterator(log_list); 376 376 p=(const LogInfo *) GetNextValueInLinkedList(log_list); … … 382 382 p=(const LogInfo *) GetNextValueInLinkedList(log_list); 383 383 } 384 UnlockSemaphoreInfo(log_semaphore);384 (void) UnlockSemaphoreInfo(log_semaphore); 385 385 qsort((void *) preferences,(size_t) i,sizeof(*preferences),LogInfoCompare); 386 386 preferences[i]=(LogInfo *) NULL; … … 465 465 Generate log list. 466 466 */ 467 LockSemaphoreInfo(log_semaphore);467 (void) LockSemaphoreInfo(log_semaphore); 468 468 ResetLinkedListIterator(log_list); 469 469 p=(const LogInfo *) GetNextValueInLinkedList(log_list); … … 475 475 p=(const LogInfo *) GetNextValueInLinkedList(log_list); 476 476 } 477 UnlockSemaphoreInfo(log_semaphore);477 (void) UnlockSemaphoreInfo(log_semaphore); 478 478 qsort((void *) preferences,(size_t) i,sizeof(*preferences),LogCompare); 479 479 preferences[i]=(char *) NULL; … … 533 533 if (log_semaphore == (SemaphoreInfo *) NULL) 534 534 AcquireSemaphoreInfo(&log_semaphore); 535 LockSemaphoreInfo(log_semaphore);535 (void) LockSemaphoreInfo(log_semaphore); 536 536 if ((log_list == (LinkedListInfo *) NULL) && 537 537 (instantiate_log == MagickFalse)) … … 540 540 instantiate_log=MagickTrue; 541 541 } 542 UnlockSemaphoreInfo(log_semaphore);542 (void) UnlockSemaphoreInfo(log_semaphore); 543 543 } 544 544 return(log_list != (LinkedListInfo *) NULL ? MagickTrue : MagickFalse); … … 739 739 if (log_semaphore == (SemaphoreInfo *) NULL) 740 740 AcquireSemaphoreInfo(&log_semaphore); 741 LockSemaphoreInfo(log_semaphore);741 (void) LockSemaphoreInfo(log_semaphore); 742 742 if (log_list != (LinkedListInfo *) NULL) 743 743 log_list=DestroyLinkedList(log_list,DestroyLogElement); 744 744 instantiate_log=MagickFalse; 745 UnlockSemaphoreInfo(log_semaphore);745 (void) UnlockSemaphoreInfo(log_semaphore); 746 746 DestroySemaphoreInfo(&log_semaphore); 747 747 } … … 1128 1128 log_info=(LogInfo *) GetLogInfo("*",exception); 1129 1129 exception=DestroyExceptionInfo(exception); 1130 LockSemaphoreInfo(log_semaphore);1130 (void) LockSemaphoreInfo(log_semaphore); 1131 1131 if ((log_info->event_mask & type) == 0) 1132 1132 { 1133 UnlockSemaphoreInfo(log_semaphore);1133 (void) UnlockSemaphoreInfo(log_semaphore); 1134 1134 return(MagickTrue); 1135 1135 } … … 1146 1146 { 1147 1147 (void) ContinueTimer((TimerInfo *) &log_info->timer); 1148 UnlockSemaphoreInfo(log_semaphore);1148 (void) UnlockSemaphoreInfo(log_semaphore); 1149 1149 return(MagickFalse); 1150 1150 } … … 1189 1189 { 1190 1190 (void) ContinueTimer((TimerInfo *) &log_info->timer); 1191 UnlockSemaphoreInfo(log_semaphore);1191 (void) UnlockSemaphoreInfo(log_semaphore); 1192 1192 return(MagickFalse); 1193 1193 } … … 1197 1197 if (log_info->file == (FILE *) NULL) 1198 1198 { 1199 UnlockSemaphoreInfo(log_semaphore);1199 (void) UnlockSemaphoreInfo(log_semaphore); 1200 1200 return(MagickFalse); 1201 1201 } … … 1223 1223 text=(char *) RelinquishMagickMemory(text); 1224 1224 (void) ContinueTimer((TimerInfo *) &log_info->timer); 1225 UnlockSemaphoreInfo(log_semaphore);1225 (void) UnlockSemaphoreInfo(log_semaphore); 1226 1226 return(MagickTrue); 1227 1227 } … … 1686 1686 exception=DestroyExceptionInfo(exception); 1687 1687 option=ParseMagickOption(MagickLogEventOptions,MagickTrue,events); 1688 LockSemaphoreInfo(log_semaphore);1688 (void) LockSemaphoreInfo(log_semaphore); 1689 1689 log_info=(LogInfo *) GetValueFromLinkedList(log_list,0); 1690 1690 log_info->event_mask=(LogEventType) option; 1691 1691 if (option == -1) 1692 1692 log_info->event_mask=UndefinedEvents; 1693 UnlockSemaphoreInfo(log_semaphore);1693 (void) UnlockSemaphoreInfo(log_semaphore); 1694 1694 return(log_info->event_mask); 1695 1695 } … … 1728 1728 log_info=(LogInfo *) GetLogInfo("*",exception); 1729 1729 exception=DestroyExceptionInfo(exception); 1730 LockSemaphoreInfo(log_semaphore);1730 (void) LockSemaphoreInfo(log_semaphore); 1731 1731 if (log_info->format != (char *) NULL) 1732 1732 log_info->format=DestroyString(log_info->format); 1733 1733 log_info->format=ConstantString(format); 1734 UnlockSemaphoreInfo(log_semaphore);1734 (void) UnlockSemaphoreInfo(log_semaphore); 1735 1735 } 1736 1736 -
ImageMagick/trunk/magick/magic.c
r455 r460 260 260 Search for magic tag. 261 261 */ 262 LockSemaphoreInfo(magic_semaphore);262 (void) LockSemaphoreInfo(magic_semaphore); 263 263 ResetLinkedListIterator(magic_list); 264 264 p=(const MagicInfo *) GetNextValueInLinkedList(magic_list); … … 274 274 (void) InsertValueInLinkedList(magic_list,0, 275 275 RemoveElementByValueFromLinkedList(magic_list,p)); 276 UnlockSemaphoreInfo(magic_semaphore);276 (void) UnlockSemaphoreInfo(magic_semaphore); 277 277 return(p); 278 278 } … … 357 357 Generate magic list. 358 358 */ 359 LockSemaphoreInfo(magic_semaphore);359 (void) LockSemaphoreInfo(magic_semaphore); 360 360 ResetLinkedListIterator(magic_list); 361 361 p=(const MagicInfo *) GetNextValueInLinkedList(magic_list); … … 367 367 p=(const MagicInfo *) GetNextValueInLinkedList(magic_list); 368 368 } 369 UnlockSemaphoreInfo(magic_semaphore);369 (void) UnlockSemaphoreInfo(magic_semaphore); 370 370 qsort((void *) aliases,(size_t) i,sizeof(*aliases),MagicInfoCompare); 371 371 aliases[i]=(MagicInfo *) NULL; … … 449 449 if (aliases == (char **) NULL) 450 450 return((char **) NULL); 451 LockSemaphoreInfo(magic_semaphore);451 (void) LockSemaphoreInfo(magic_semaphore); 452 452 ResetLinkedListIterator(magic_list); 453 453 p=(const MagicInfo *) GetNextValueInLinkedList(magic_list); … … 459 459 p=(const MagicInfo *) GetNextValueInLinkedList(magic_list); 460 460 } 461 UnlockSemaphoreInfo(magic_semaphore);461 (void) UnlockSemaphoreInfo(magic_semaphore); 462 462 qsort((void *) aliases,(size_t) i,sizeof(*aliases),MagicCompare); 463 463 aliases[i]=(char *) NULL; … … 525 525 if (magic_semaphore == (SemaphoreInfo *) NULL) 526 526 AcquireSemaphoreInfo(&magic_semaphore); 527 LockSemaphoreInfo(magic_semaphore);527 (void) LockSemaphoreInfo(magic_semaphore); 528 528 if ((magic_list == (LinkedListInfo *) NULL) && 529 529 (instantiate_magic == MagickFalse)) … … 532 532 instantiate_magic=MagickTrue; 533 533 } 534 UnlockSemaphoreInfo(magic_semaphore);534 (void) UnlockSemaphoreInfo(magic_semaphore); 535 535 } 536 536 return(magic_list != (LinkedListInfo *) NULL ? MagickTrue : MagickFalse); … … 1062 1062 if (magic_semaphore == (SemaphoreInfo *) NULL) 1063 1063 AcquireSemaphoreInfo(&magic_semaphore); 1064 LockSemaphoreInfo(magic_semaphore);1064 (void) LockSemaphoreInfo(magic_semaphore); 1065 1065 if (magic_list != (LinkedListInfo *) NULL) 1066 1066 magic_list=DestroyLinkedList(magic_list,DestroyMagicElement); 1067 1067 instantiate_magic=MagickFalse; 1068 UnlockSemaphoreInfo(magic_semaphore);1068 (void) UnlockSemaphoreInfo(magic_semaphore); 1069 1069 DestroySemaphoreInfo(&magic_semaphore); 1070 1070 } -
ImageMagick/trunk/magick/magick.c
r455 r460 229 229 return(MagickFalse); 230 230 status=MagickFalse; 231 LockSemaphoreInfo(magick_semaphore);231 (void) LockSemaphoreInfo(magick_semaphore); 232 232 ResetSplayTreeIterator(magick_list); 233 233 p=(const MagickInfo *) GetNextValueInSplayTree(magick_list); … … 243 243 p=(const MagickInfo *) GetNextValueInSplayTree(magick_list); 244 244 } 245 UnlockSemaphoreInfo(magick_semaphore);245 (void) UnlockSemaphoreInfo(magick_semaphore); 246 246 return(status); 247 247 } … … 413 413 (void) OpenModules(exception); 414 414 #endif 415 LockSemaphoreInfo(magick_semaphore);415 (void) LockSemaphoreInfo(magick_semaphore); 416 416 ResetSplayTreeIterator(magick_list); 417 417 p=(const MagickInfo *) GetNextValueInSplayTree(magick_list); 418 UnlockSemaphoreInfo(magick_semaphore);418 (void) UnlockSemaphoreInfo(magick_semaphore); 419 419 return(p); 420 420 } … … 422 422 Find name in list. 423 423 */ 424 LockSemaphoreInfo(magick_semaphore);424 (void) LockSemaphoreInfo(magick_semaphore); 425 425 ResetSplayTreeIterator(magick_list); 426 426 p=(const MagickInfo *) GetNextValueInSplayTree(magick_list); … … 446 446 } 447 447 #endif 448 UnlockSemaphoreInfo(magick_semaphore);448 (void) UnlockSemaphoreInfo(magick_semaphore); 449 449 return(p); 450 450 } … … 527 527 Generate magick list. 528 528 */ 529 LockSemaphoreInfo(magick_semaphore);529 (void) LockSemaphoreInfo(magick_semaphore); 530 530 ResetSplayTreeIterator(magick_list); 531 531 p=(const MagickInfo *) GetNextValueInSplayTree(magick_list); … … 537 537 p=(const MagickInfo *) GetNextValueInSplayTree(magick_list); 538 538 } 539 UnlockSemaphoreInfo(magick_semaphore);539 (void) UnlockSemaphoreInfo(magick_semaphore); 540 540 qsort((void *) formats,(size_t) i,sizeof(*formats),MagickInfoCompare); 541 541 formats[i]=(MagickInfo *) NULL; … … 617 617 if (formats == (char **) NULL) 618 618 return((char **) NULL); 619 LockSemaphoreInfo(magick_semaphore);619 (void) LockSemaphoreInfo(magick_semaphore); 620 620 ResetSplayTreeIterator(magick_list); 621 621 p=(const MagickInfo *) GetNextValueInSplayTree(magick_list); … … 627 627 p=(const MagickInfo *) GetNextValueInSplayTree(magick_list); 628 628 } 629 UnlockSemaphoreInfo(magick_semaphore);629 (void) UnlockSemaphoreInfo(magick_semaphore); 630 630 qsort((void *) formats,(size_t) i,sizeof(*formats),MagickCompare); 631 631 formats[i]=(char *) NULL; … … 778 778 if (magick_semaphore == (SemaphoreInfo *) NULL) 779 779 AcquireSemaphoreInfo(&magick_semaphore); 780 LockSemaphoreInfo(magick_semaphore);780 (void) LockSemaphoreInfo(magick_semaphore); 781 781 if ((magick_list == (SplayTreeInfo *) NULL) && 782 782 (instantiate_magick == MagickFalse)) … … 820 820 instantiate_magick=MagickTrue; 821 821 } 822 UnlockSemaphoreInfo(magick_semaphore);822 (void) UnlockSemaphoreInfo(magick_semaphore); 823 823 } 824 824 return(magick_list != (SplayTreeInfo *) NULL ? MagickTrue : MagickFalse); … … 1059 1059 if (magick_semaphore == (SemaphoreInfo *) NULL) 1060 1060 AcquireSemaphoreInfo(&magick_semaphore); 1061 LockSemaphoreInfo(magick_semaphore);1061 (void) LockSemaphoreInfo(magick_semaphore); 1062 1062 if (magick_list != (SplayTreeInfo *) NULL) 1063 1063 magick_list=DestroySplayTree(magick_list); 1064 1064 instantiate_magick=MagickFalse; 1065 UnlockSemaphoreInfo(magick_semaphore);1065 (void) UnlockSemaphoreInfo(magick_semaphore); 1066 1066 DestroySemaphoreInfo(&magick_semaphore); 1067 1067 } … … 1466 1466 if (GetNumberOfNodesInSplayTree(magick_list) == 0) 1467 1467 return(MagickFalse); 1468 LockSemaphoreInfo(magick_semaphore);1468 (void) LockSemaphoreInfo(magick_semaphore); 1469 1469 ResetSplayTreeIterator(magick_list); 1470 1470 p=(const MagickInfo *) GetNextValueInSplayTree(magick_list); … … 1476 1476 } 1477 1477 status=DeleteNodeByValueFromSplayTree(magick_list,p); 1478 UnlockSemaphoreInfo(magick_semaphore);1478 (void) UnlockSemaphoreInfo(magick_semaphore); 1479 1479 return(status); 1480 1480 } -
ImageMagick/trunk/magick/memory.c
r453 r460 392 392 if (free_segments == (DataSegmentInfo *) NULL) 393 393 { 394 LockSemaphoreInfo(memory_semaphore);394 (void) LockSemaphoreInfo(memory_semaphore); 395 395 if (free_segments == (DataSegmentInfo *) NULL) 396 396 { … … 412 412 free_segments=(&memory_info.segment_pool[0]); 413 413 } 414 UnlockSemaphoreInfo(memory_semaphore);415 } 416 LockSemaphoreInfo(memory_semaphore);414 (void) UnlockSemaphoreInfo(memory_semaphore); 415 } 416 (void) LockSemaphoreInfo(memory_semaphore); 417 417 memory=AcquireBlock(size == 0 ? 1UL : size); 418 418 if (memory == (void *) NULL) … … 421 421 memory=AcquireBlock(size == 0 ? 1UL : size); 422 422 } 423 UnlockSemaphoreInfo(memory_semaphore);423 (void) UnlockSemaphoreInfo(memory_semaphore); 424 424 #endif 425 425 return(memory); … … 547 547 i; 548 548 549 LockSemaphoreInfo(memory_semaphore);550 UnlockSemaphoreInfo(memory_semaphore);549 (void) LockSemaphoreInfo(memory_semaphore); 550 (void) UnlockSemaphoreInfo(memory_semaphore); 551 551 for (i=0; i < (long) memory_info.number_segments; i++) 552 552 if (memory_info.segments[i]->mapped == MagickFalse) … … 743 743 assert((SizeOfBlock(memory) % (4*sizeof(size_t))) == 0); 744 744 assert((*BlockHeader(NextBlock(memory)) & PreviousBlockBit) != 0); 745 LockSemaphoreInfo(memory_semaphore);745 (void) LockSemaphoreInfo(memory_semaphore); 746 746 if ((*BlockHeader(memory) & PreviousBlockBit) == 0) 747 747 { … … 774 774 *BlockHeader(NextBlock(memory))&=(~PreviousBlockBit); 775 775 InsertFreeBlock(memory,AllocationPolicy(SizeOfBlock(memory))); 776 UnlockSemaphoreInfo(memory_semaphore);776 (void) UnlockSemaphoreInfo(memory_semaphore); 777 777 #endif 778 778 return((void *) NULL); … … 871 871 memory=RelinquishMagickMemory(memory); 872 872 #else 873 LockSemaphoreInfo(memory_semaphore);873 (void) LockSemaphoreInfo(memory_semaphore); 874 874 block=ResizeBlock(memory,size == 0 ? 1UL : size); 875 875 if (block == (void *) NULL) … … 877 877 if (ExpandHeap(size == 0 ? 1UL : size) == MagickFalse) 878 878 { 879 UnlockSemaphoreInfo(memory_semaphore);879 (void) UnlockSemaphoreInfo(memory_semaphore); 880 880 memory=RelinquishMagickMemory(memory); 881 881 ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed"); … … 884 884 assert(block != (void *) NULL); 885 885 } 886 UnlockSemaphoreInfo(memory_semaphore);886 (void) UnlockSemaphoreInfo(memory_semaphore); 887 887 memory=RelinquishMagickMemory(memory); 888 888 #endif -
ImageMagick/trunk/magick/mime.c
r455 r460 201 201 mime_info=(const MimeInfo *) NULL; 202 202 lsb_first=1; 203 LockSemaphoreInfo(mime_semaphore);203 (void) LockSemaphoreInfo(mime_semaphore); 204 204 ResetLinkedListIterator(mime_list); 205 205 p=(const MimeInfo *) GetNextValueInLinkedList(mime_list); … … 325 325 (void) InsertValueInLinkedList(mime_list,0, 326 326 RemoveElementByValueFromLinkedList(mime_list,p)); 327 UnlockSemaphoreInfo(mime_semaphore);327 (void) UnlockSemaphoreInfo(mime_semaphore); 328 328 return(mime_info); 329 329 } … … 409 409 Generate mime list. 410 410 */ 411 LockSemaphoreInfo(mime_semaphore);411 (void) LockSemaphoreInfo(mime_semaphore); 412 412 ResetLinkedListIterator(mime_list); 413 413 p=(const MimeInfo *) GetNextValueInLinkedList(mime_list); … … 419 419 p=(const MimeInfo *) GetNextValueInLinkedList(mime_list); 420 420 } 421 UnlockSemaphoreInfo(mime_semaphore);421 (void) UnlockSemaphoreInfo(mime_semaphore); 422 422 qsort((void *) aliases,(size_t) i,sizeof(*aliases),MimeInfoCompare); 423 423 aliases[i]=(MimeInfo *) NULL; … … 501 501 if (aliases == (char **) NULL) 502 502 return((char **) NULL); 503 LockSemaphoreInfo(mime_semaphore);503 (void) LockSemaphoreInfo(mime_semaphore); 504 504 ResetLinkedListIterator(mime_list); 505 505 p=(const MimeInfo *) GetNextValueInLinkedList(mime_list); … … 511 511 p=(const MimeInfo *) GetNextValueInLinkedList(mime_list); 512 512 } 513 UnlockSemaphoreInfo(mime_semaphore);513 (void) UnlockSemaphoreInfo(mime_semaphore); 514 514 qsort((void *) aliases,(size_t) i,sizeof(*aliases),MimeCompare); 515 515 aliases[i]=(char *) NULL; … … 607 607 if (mime_semaphore == (SemaphoreInfo *) NULL) 608 608 AcquireSemaphoreInfo(&mime_semaphore); 609 LockSemaphoreInfo(mime_semaphore);609 (void) LockSemaphoreInfo(mime_semaphore); 610 610 if ((mime_list == (LinkedListInfo *) NULL) && 611 611 (instantiate_mime == MagickFalse)) … … 614 614 instantiate_mime=MagickTrue; 615 615 } 616 UnlockSemaphoreInfo(mime_semaphore);616 (void) UnlockSemaphoreInfo(mime_semaphore); 617 617 } 618 618 return(mime_list != (LinkedListInfo *) NULL ? MagickTrue : MagickFalse); … … 1101 1101 if (mime_semaphore == (SemaphoreInfo *) NULL) 1102 1102 AcquireSemaphoreInfo(&mime_semaphore); 1103 LockSemaphoreInfo(mime_semaphore);1103 (void) LockSemaphoreInfo(mime_semaphore); 1104 1104 if (mime_list != (LinkedListInfo *) NULL) 1105 1105 mime_list=DestroyLinkedList(mime_list,DestroyMimeElement); 1106 1106 instantiate_mime=MagickFalse; 1107 UnlockSemaphoreInfo(mime_semaphore);1107 (void) UnlockSemaphoreInfo(mime_semaphore); 1108 1108 DestroySemaphoreInfo(&mime_semaphore); 1109 1109 } -
ImageMagick/trunk/magick/module.c
r455 r460 176 176 Destroy magick modules. 177 177 */ 178 LockSemaphoreInfo(module_semaphore);178 (void) LockSemaphoreInfo(module_semaphore); 179 179 #if defined(MAGICKCORE_MODULES_SUPPORT) 180 180 if (module_list != (SplayTreeInfo *) NULL) … … 184 184 #endif 185 185 instantiate_module=MagickFalse; 186 UnlockSemaphoreInfo(module_semaphore);186 (void) UnlockSemaphoreInfo(module_semaphore); 187 187 } 188 188 … … 233 233 (void) OpenModules(exception); 234 234 #endif 235 LockSemaphoreInfo(module_semaphore);235 (void) LockSemaphoreInfo(module_semaphore); 236 236 ResetSplayTreeIterator(module_list); 237 237 p=(ModuleInfo *) GetNextValueInSplayTree(module_list); 238 UnlockSemaphoreInfo(module_semaphore);238 (void) UnlockSemaphoreInfo(module_semaphore); 239 239 return(p); 240 240 } … … 320 320 Generate module list. 321 321 */ 322 LockSemaphoreInfo(module_semaphore);322 (void) LockSemaphoreInfo(module_semaphore); 323 323 ResetSplayTreeIterator(module_list); 324 324 p=(const ModuleInfo *) GetNextValueInSplayTree(module_list); … … 330 330 p=(const ModuleInfo *) GetNextValueInSplayTree(module_list); 331 331 } 332 UnlockSemaphoreInfo(module_semaphore);332 (void) UnlockSemaphoreInfo(module_semaphore); 333 333 qsort((void *) modules,(size_t) i,sizeof(*modules),ModuleInfoCompare); 334 334 modules[i]=(ModuleInfo *) NULL; … … 850 850 if (module_semaphore == (SemaphoreInfo *) NULL) 851 851 AcquireSemaphoreInfo(&module_semaphore); 852 LockSemaphoreInfo(module_semaphore);852 (void) LockSemaphoreInfo(module_semaphore); 853 853 if ((module_list == (SplayTreeInfo *) NULL) && 854 854 (instantiate_module == MagickFalse)) … … 876 876 instantiate_module=MagickTrue; 877 877 } 878 UnlockSemaphoreInfo(module_semaphore);878 (void) UnlockSemaphoreInfo(module_semaphore); 879 879 } 880 880 return(module_list != (SplayTreeInfo *) NULL ? MagickTrue : MagickFalse); -
ImageMagick/trunk/magick/policy.c
r455 r460 193 193 Search for policy tag. 194 194 */ 195 LockSemaphoreInfo(policy_semaphore);195 (void) LockSemaphoreInfo(policy_semaphore); 196 196 ResetLinkedListIterator(policy_list); 197 197 p=(PolicyInfo *) GetNextValueInLinkedList(policy_list); … … 208 208 (void) InsertValueInLinkedList(policy_list,0, 209 209 RemoveElementByValueFromLinkedList(policy_list,p)); 210 UnlockSemaphoreInfo(policy_semaphore);210 (void) UnlockSemaphoreInfo(policy_semaphore); 211 211 return(p); 212 212 } … … 268 268 Generate policy list. 269 269 */ 270 LockSemaphoreInfo(policy_semaphore);270 (void) LockSemaphoreInfo(policy_semaphore); 271 271 ResetLinkedListIterator(policy_list); 272 272 p=(const PolicyInfo *) GetNextValueInLinkedList(policy_list); … … 278 278 p=(const PolicyInfo *) GetNextValueInLinkedList(policy_list); 279 279 } 280 UnlockSemaphoreInfo(policy_semaphore);280 (void) UnlockSemaphoreInfo(policy_semaphore); 281 281 policies[i]=(PolicyInfo *) NULL; 282 282 *number_policies=(unsigned long) i; … … 340 340 Generate policy list. 341 341 */ 342 LockSemaphoreInfo(policy_semaphore);342 (void) LockSemaphoreInfo(policy_semaphore); 343 343 ResetLinkedListIterator(policy_list); 344 344 p=(const PolicyInfo *) GetNextValueInLinkedList(policy_list); … … 350 350 p=(const PolicyInfo *) GetNextValueInLinkedList(policy_list); 351 351 } 352 UnlockSemaphoreInfo(policy_semaphore);352 (void) UnlockSemaphoreInfo(policy_semaphore); 353 353 policies[i]=(char *) NULL; 354 354 *number_policies=(unsigned long) i; … … 431 431 if (policy_semaphore == (SemaphoreInfo *) NULL) 432 432 AcquireSemaphoreInfo(&policy_semaphore); 433 LockSemaphoreInfo(policy_semaphore);433 (void) LockSemaphoreInfo(policy_semaphore); 434 434 if ((policy_list == (LinkedListInfo *) NULL) && 435 435 (instantiate_policy == MagickFalse)) … … 438 438 instantiate_policy=MagickTrue; 439 439 } 440 UnlockSemaphoreInfo(policy_semaphore);440 (void) UnlockSemaphoreInfo(policy_semaphore); 441 441 } 442 442 return(policy_list != (LinkedListInfo *) NULL ? MagickTrue : MagickFalse); … … 496 496 return(MagickTrue); 497 497 authorized=MagickTrue; 498 LockSemaphoreInfo(policy_semaphore);498 (void) LockSemaphoreInfo(policy_semaphore); 499 499 ResetLinkedListIterator(policy_list); 500 500 p=(PolicyInfo *) GetNextValueInLinkedList(policy_list); … … 516 516 p=(PolicyInfo *) GetNextValueInLinkedList(policy_list); 517 517 } 518 UnlockSemaphoreInfo(policy_semaphore);518 (void) UnlockSemaphoreInfo(policy_semaphore); 519 519 return(authorized); 520 520 } … … 1016 1016 if (policy_semaphore == (SemaphoreInfo *) NULL) 1017 1017 AcquireSemaphoreInfo(&policy_semaphore); 1018 LockSemaphoreInfo(policy_semaphore);1018 (void) LockSemaphoreInfo(policy_semaphore); 1019 1019 if (policy_list != (LinkedListInfo *) NULL) 1020 1020 policy_list=DestroyLinkedList(policy_list,DestroyPolicyElement); 1021 1021 instantiate_policy=MagickFalse; 1022 UnlockSemaphoreInfo(policy_semaphore);1022 (void) UnlockSemaphoreInfo(policy_semaphore); 1023 1023 DestroySemaphoreInfo(&policy_semaphore); 1024 1024 } -
ImageMagick/trunk/magick/registry.c
r455 r460 327 327 if (registry_semaphore == (SemaphoreInfo *) NULL) 328 328 AcquireSemaphoreInfo(®istry_semaphore); 329 LockSemaphoreInfo(registry_semaphore);329 (void) LockSemaphoreInfo(registry_semaphore); 330 330 if (IsEventLogging() != MagickFalse) 331 331 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"..."); … … 333 333 registry=DestroySplayTree(registry); 334 334 instantiate_registry=MagickFalse; 335 UnlockSemaphoreInfo(registry_semaphore);335 (void) UnlockSemaphoreInfo(registry_semaphore); 336 336 DestroySemaphoreInfo(®istry_semaphore); 337 337 } … … 528 528 if (registry_semaphore == (SemaphoreInfo *) NULL) 529 529 AcquireSemaphoreInfo(®istry_semaphore); 530 LockSemaphoreInfo(registry_semaphore);530 (void) LockSemaphoreInfo(registry_semaphore); 531 531 if ((registry == (SplayTreeInfo *) NULL) && 532 532 (instantiate_registry == MagickFalse)) … … 536 536 instantiate_registry=MagickTrue; 537 537 } 538 UnlockSemaphoreInfo(registry_semaphore);538 (void) UnlockSemaphoreInfo(registry_semaphore); 539 539 } 540 540 status=AddValueToSplayTree(registry,ConstantString(key),registry_info); -
ImageMagick/trunk/magick/resource.c
r453 r460 162 162 if (resource_semaphore == (SemaphoreInfo *) NULL) 163 163 AcquireSemaphoreInfo(&resource_semaphore); 164 LockSemaphoreInfo(resource_semaphore);164 (void) LockSemaphoreInfo(resource_semaphore); 165 165 switch (type) 166 166 { … … 256 256 break; 257 257 } 258 UnlockSemaphoreInfo(resource_semaphore);258 (void) UnlockSemaphoreInfo(resource_semaphore); 259 259 (void) LogMagickEvent(ResourceEvent,GetMagickModule(),"%s: %s/%s/%s", 260 260 MagickOptionToMnemonic(MagickResourceOptions,(long) type),resource_request, … … 472 472 if (resource_semaphore == (SemaphoreInfo *) NULL) 473 473 AcquireSemaphoreInfo(&resource_semaphore); 474 LockSemaphoreInfo(resource_semaphore);474 (void) LockSemaphoreInfo(resource_semaphore); 475 475 if (temporary_resources == (SplayTreeInfo *) NULL) 476 476 temporary_resources=NewSplayTree(CompareSplayTreeString, 477 477 RelinquishMagickMemory,DestroyTemporaryResources); 478 UnlockSemaphoreInfo(resource_semaphore);478 (void) UnlockSemaphoreInfo(resource_semaphore); 479 479 resource=ConstantString(path); 480 480 (void) AddValueToSplayTree(temporary_resources,resource,resource); … … 510 510 511 511 resource=0; 512 LockSemaphoreInfo(resource_semaphore);512 (void) LockSemaphoreInfo(resource_semaphore); 513 513 switch (type) 514 514 { … … 551 551 break; 552 552 } 553 UnlockSemaphoreInfo(resource_semaphore);553 (void) UnlockSemaphoreInfo(resource_semaphore); 554 554 return(resource); 555 555 } … … 585 585 if (resource_semaphore == (SemaphoreInfo *) NULL) 586 586 AcquireSemaphoreInfo(&resource_semaphore); 587 LockSemaphoreInfo(resource_semaphore);587 (void) LockSemaphoreInfo(resource_semaphore); 588 588 switch (type) 589 589 { … … 626 626 break; 627 627 } 628 UnlockSemaphoreInfo(resource_semaphore);628 (void) UnlockSemaphoreInfo(resource_semaphore); 629 629 return(resource); 630 630 } … … 669 669 if (resource_semaphore == (SemaphoreInfo *) NULL) 670 670 AcquireSemaphoreInfo(&resource_semaphore); 671 LockSemaphoreInfo(resource_semaphore);671 (void) LockSemaphoreInfo(resource_semaphore); 672 672 (void) FormatMagickSize(resource_info.area_limit,area_limit); 673 673 (void) FormatMagickSize(resource_info.memory_limit,memory_limit); … … 686 686 disk_limit,(unsigned long) resource_info.thread_limit,time_limit); 687 687 (void) fflush(file); 688 UnlockSemaphoreInfo(resource_semaphore);688 (void) UnlockSemaphoreInfo(resource_semaphore); 689 689 return(MagickTrue); 690 690 } … … 726 726 if (resource_semaphore == (SemaphoreInfo *) NULL) 727 727 AcquireSemaphoreInfo(&resource_semaphore); 728 LockSemaphoreInfo(resource_semaphore);728 (void) LockSemaphoreInfo(resource_semaphore); 729 729 switch (type) 730 730 { … … 791 791 break; 792 792 } 793 UnlockSemaphoreInfo(resource_semaphore);793 (void) UnlockSemaphoreInfo(resource_semaphore); 794 794 (void) LogMagickEvent(ResourceEvent,GetMagickModule(),"%s: %s/%s/%s", 795 795 MagickOptionToMnemonic(MagickResourceOptions,(long) type),resource_request, … … 1026 1026 if (resource_semaphore == (SemaphoreInfo *) NULL) 1027 1027 AcquireSemaphoreInfo(&resource_semaphore); 1028 LockSemaphoreInfo(resource_semaphore);1028 (void) LockSemaphoreInfo(resource_semaphore); 1029 1029 if (temporary_resources != (SplayTreeInfo *) NULL) 1030 1030 temporary_resources=DestroySplayTree(temporary_resources); 1031 1031 if (random_info != (RandomInfo *) NULL) 1032 1032 random_info=DestroyRandomInfo(random_info); 1033 UnlockSemaphoreInfo(resource_semaphore);1033 (void) UnlockSemaphoreInfo(resource_semaphore); 1034 1034 DestroySemaphoreInfo(&resource_semaphore); 1035 1035 } … … 1065 1065 if (resource_semaphore == (SemaphoreInfo *) NULL) 1066 1066 AcquireSemaphoreInfo(&resource_semaphore); 1067 LockSemaphoreInfo(resource_semaphore);1067 (void) LockSemaphoreInfo(resource_semaphore); 1068 1068 switch (type) 1069 1069 { … … 1107 1107 break; 1108 1108 } 1109 UnlockSemaphoreInfo(resource_semaphore);1109 (void) UnlockSemaphoreInfo(resource_semaphore); 1110 1110 return(MagickTrue); 1111 1111 } -
ImageMagick/trunk/magick/type.c
r455 r460 271 271 if (type_list == (SplayTreeInfo *) NULL) 272 272 return((TypeInfo *) NULL); 273 LockSemaphoreInfo(type_semaphore);273 (void) LockSemaphoreInfo(type_semaphore); 274 274 ResetSplayTreeIterator(type_list); 275 275 type_info=(const TypeInfo *) NULL; … … 316 316 break; 317 317 } 318 UnlockSemaphoreInfo(type_semaphore);318 (void) UnlockSemaphoreInfo(type_semaphore); 319 319 if (type_info != (const TypeInfo *) NULL) 320 320 return(type_info); … … 323 323 */ 324 324 max_score=0; 325 LockSemaphoreInfo(type_semaphore);325 (void) LockSemaphoreInfo(type_semaphore); 326 326 ResetSplayTreeIterator(type_list); 327 327 p=(const TypeInfo *) GetNextValueInSplayTree(type_list); … … 375 375 p=(const TypeInfo *) GetNextValueInSplayTree(type_list); 376 376 } 377 UnlockSemaphoreInfo(type_semaphore);377 (void) UnlockSemaphoreInfo(type_semaphore); 378 378 if (type_info != (const TypeInfo *) NULL) 379 379 return(type_info); … … 486 486 Generate type list. 487 487 */ 488 LockSemaphoreInfo(type_semaphore);488 (void) LockSemaphoreInfo(type_semaphore); 489 489 ResetSplayTreeIterator(type_list); 490 490 p=(const TypeInfo *) GetNextValueInSplayTree(type_list); … … 496 496 p=(const TypeInfo *) GetNextValueInSplayTree(type_list); 497 497 } 498 UnlockSemaphoreInfo(type_semaphore);498 (void) UnlockSemaphoreInfo(type_semaphore); 499 499 qsort((void *) fonts,(size_t) i,sizeof(*fonts),TypeInfoCompare); 500 500 fonts[i]=(TypeInfo *) NULL; … … 579 579 Generate type list. 580 580 */ 581 LockSemaphoreInfo(type_semaphore);581 (void) LockSemaphoreInfo(type_semaphore); 582 582 ResetSplayTreeIterator(type_list); 583 583 p=(const TypeInfo *) GetNextValueInSplayTree(type_list); … … 589 589 p=(const TypeInfo *) GetNextValueInSplayTree(type_list); 590 590 } 591 UnlockSemaphoreInfo(type_semaphore);591 (void) UnlockSemaphoreInfo(type_semaphore); 592 592 qsort((void *) fonts,(size_t) i,sizeof(*fonts),TypeCompare); 593 593 fonts[i]=(char *) NULL; … … 774 774 if (type_semaphore == (SemaphoreInfo *) NULL) 775 775 AcquireSemaphoreInfo(&type_semaphore); 776 LockSemaphoreInfo(type_semaphore);776 (void) LockSemaphoreInfo(type_semaphore); 777 777 if ((type_list == (SplayTreeInfo *) NULL) && 778 778 (instantiate_type == MagickFalse)) … … 787 787 instantiate_type=MagickTrue; 788 788 } 789 UnlockSemaphoreInfo(type_semaphore);789 (void) UnlockSemaphoreInfo(type_semaphore); 790 790 } 791 791 return(type_list != (SplayTreeInfo *) NULL ? MagickTrue : MagickFalse); … … 1372 1372 if (type_semaphore == (SemaphoreInfo *) NULL) 1373 1373 AcquireSemaphoreInfo(&type_semaphore); 1374 LockSemaphoreInfo(type_semaphore);1374 (void) LockSemaphoreInfo(type_semaphore); 1375 1375 if (type_list != (SplayTreeInfo *) NULL) 1376 1376 type_list=DestroySplayTree(type_list); 1377 1377 instantiate_type=MagickFalse; 1378 UnlockSemaphoreInfo(type_semaphore);1378 (void) UnlockSemaphoreInfo(type_semaphore); 1379 1379 DestroySemaphoreInfo(&type_semaphore); 1380 1380 } -
ImageMagick/trunk/wand/wand.c
r453 r460 79 79 if (wand_semaphore == (SemaphoreInfo *) NULL) 80 80 AcquireSemaphoreInfo(&wand_semaphore); 81 LockSemaphoreInfo(wand_semaphore);81 (void) LockSemaphoreInfo(wand_semaphore); 82 82 if ((wand_ids == (SplayTreeInfo *) NULL) && (instantiate_wand == MagickFalse)) 83 83 { … … 88 88 id++; 89 89 (void) AddValueToSplayTree(wand_ids,(const void *) id,(const void *) id); 90 UnlockSemaphoreInfo(wand_semaphore);90 (void) UnlockSemaphoreInfo(wand_semaphore); 91 91 return(id); 92 92 } … … 114 114 WandExport void DestroyWandIds(void) 115 115 { 116 LockSemaphoreInfo(wand_semaphore);116 (void) LockSemaphoreInfo(wand_semaphore); 117 117 if (wand_ids != (SplayTreeInfo *) NULL) 118 118 wand_ids=DestroySplayTree(wand_ids); 119 119 instantiate_wand=MagickFalse; 120 UnlockSemaphoreInfo(wand_semaphore);120 (void) UnlockSemaphoreInfo(wand_semaphore); 121 121 DestroySemaphoreInfo(&wand_semaphore); 122 122 } … … 146 146 WandExport void RelinquishWandId(const unsigned long id) 147 147 { 148 LockSemaphoreInfo(wand_semaphore);148 (void) LockSemaphoreInfo(wand_semaphore); 149 149 if (wand_ids != (SplayTreeInfo *) NULL) 150 150 (void) DeleteNodeByValueFromSplayTree(wand_ids,(const void *) id); 151 UnlockSemaphoreInfo(wand_semaphore);151 (void) UnlockSemaphoreInfo(wand_semaphore); 152 152 }
