]> git.michaelhowe.org Git - packages/o/openafs.git/commit
vol: fix OS_LOCKFILE/OS_UNLOCKFILE for Windows
authorJeffrey Altman <jaltman@your-file-system.com>
Sat, 15 Jan 2011 16:01:55 +0000 (11:01 -0500)
committerJeffrey Altman <jaltman@openafs.org>
Sat, 15 Jan 2011 23:00:47 +0000 (15:00 -0800)
commite8e69d5b2c611df249fd613ed068fc030a0e30d1
tree4f110167ee6bcb2f6a7e014aad5aec52fff7413d
parentac79869f62d667737ea0020218eb4dc90a731171
vol: fix OS_LOCKFILE/OS_UNLOCKFILE for Windows

On UNIX the OS_LOCKFILE and OS_UNLOCKFILE macros return zero
on success.  Since Windows LockFile() and UnlockFile() return
non-zero (TRUE) on success, negate the return value as part
of the macro definition.

Change-Id: Icb4c8555de9a16fdfddcaeb9ede28bbd401e76b7
Reviewed-on: http://gerrit.openafs.org/3664
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/vol/ihandle.h