VLockFile: add a couple of asserts
authorAndrew Deason <adeason@sinenomine.net>
Fri, 19 Feb 2010 22:48:06 +0000 (16:48 -0600)
committerDerrick Brashear <shadow@dementia.org>
Tue, 9 Mar 2010 19:06:43 +0000 (11:06 -0800)
commit7d7e2f2af801b734c1cb7fd3f84be419ad851348
tree1639cf8df9b1fc9b04f65b97f4751508a324beea
parent9aa09f5e634db8a8b2dedf3a749f2a90ef206e2f
VLockFile: add a couple of asserts

Add a couple of asserts to make some mistakes very obvious, such as
passing in an invalid 'locktype' or unlocking more times than locking.

Change-Id: Ie6e707ea515d5a6527dedc8875f0a4694b7b93c9
Reviewed-on: http://gerrit.openafs.org/1357
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/vol/vutil.c