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

- Corrected the lock variable name.

git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15092 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2006-04-05 08:19:11 +00:00
parent 2e227506e5
commit 184a2ada87
2 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
#
# $Id: GNUmakefile.68k,v 1.81 2006-04-05 07:53:23 obarthel Exp $
# $Id: GNUmakefile.68k,v 1.82 2006-04-05 08:19:11 obarthel Exp $
#
# :ts=8
#
@ -105,7 +105,7 @@ WARNINGS = \
INCLUDES = -Iinclude -I. -Inetinclude
#OPTIONS = -fno-builtin -fno-common -DDEBUG
OPTIONS = -fno-builtin -fno-common -DNDEBUG
OPTIONS = -fno-builtin -fno-common -DNDEBUG -D__THREAD_SAFE
#OPTIONS = -fno-builtin -fno-common -D__MEM_DEBUG
#OPTIONS = -fno-builtin -fno-common -DDEBUG -D__MEM_DEBUG -DNO_INLINE_STDARG
OPTIMIZE = -O -fomit-frame-pointer -fstrength-reduce -finline-functions

View File

@ -1,5 +1,5 @@
/*
* $Id: unistd_chown.c,v 1.10 2006-04-05 06:43:56 obarthel Exp $
* $Id: unistd_chown.c,v 1.11 2006-04-05 08:19:11 obarthel Exp $
*
* :ts=4
*
@ -116,8 +116,8 @@ chown(const char * path_name, uid_t owner, gid_t group)
/* Try to find out which owner/group information
is currently in use. */
lock = Lock(path_name,SHARED_LOCK);
if(lock == ZERO || CANNOT Examine(file_lock,fib))
file_lock = Lock((STRPTR)path_name,SHARED_LOCK);
if(file_lock == ZERO || CANNOT Examine(file_lock,fib))
{
PROFILE_ON();
@ -125,8 +125,8 @@ chown(const char * path_name, uid_t owner, gid_t group)
goto out;
}
UnLock(lock);
lock = ZERO;
UnLock(file_lock);
file_lock = ZERO;
PROFILE_ON();