]> git.michaelhowe.org Git - packages/o/openafs.git/commit
vol: Always use INVALID_FD to indicate an invalid fd
authorJeffrey Altman <jaltman@your-file-system.com>
Thu, 28 Oct 2010 04:40:32 +0000 (00:40 -0400)
committerDerrick Brashear <shadow@dementia.org>
Tue, 8 Feb 2011 20:27:10 +0000 (12:27 -0800)
commitb682683bdd032157626448b504336c174e0809c1
treed3ea04591450a8485071779b84a91ff77f6ba3ab
parentd69b87724790ceb2db25b580cebfc4f18f99dbf9
vol: Always use INVALID_FD to indicate an invalid fd

file descriptors on Windows are not ints and therefore
cannot be safely compared against -1.  Always use INVALID_FD
which is -1 on UNIX and INVALID_HANDLE_VALUE on Windows.

Reviewed-on: http://gerrit.openafs.org/3178
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit d21dd16789458c07e63abe021f93f656dba4e52c)

Change-Id: I99e0ef2f0c1ff23817ffb13b270bc0f04bcf12a4
Reviewed-on: http://gerrit.openafs.org/3905
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/vol/partition.c