1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- Moved a few __delete_semaphore() calls into conditional compilation

sections where they should have been in the first place.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14869 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-03-09 12:06:10 +00:00
parent cc8a8e42c0
commit ee556fcb35
7 changed files with 42 additions and 15 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: stdio_fdhookentry.c,v 1.18 2005-03-07 11:58:49 obarthel Exp $
* $Id: stdio_fdhookentry.c,v 1.19 2005-03-09 12:06:10 obarthel Exp $
*
* :ts=4
*
@ -341,8 +341,12 @@ __fd_hook_entry(
__fd_unlock(fd);
/* Free the lock semaphore now. */
__delete_semaphore(fd->fd_Lock);
#if defined(__THREAD_SAFE)
{
/* Free the lock semaphore now. */
__delete_semaphore(fd->fd_Lock);
}
#endif /* __THREAD_SAFE */
/* And that's the last for this file descriptor. */
memset(fd,0,sizeof(*fd));