From: Andreas Schlick Date: Fri, 4 Mar 2011 15:41:53 +0000 (+0100) Subject: tdb2: Correct the comment explaining tdb_brlock(). X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=abac60537ea825400dce4d34c5406b8e48783102;ds=sidebyside tdb2: Correct the comment explaining tdb_brlock(). --- diff --git a/ccan/tdb2/lock.c b/ccan/tdb2/lock.c index b57c5344..b1799a7e 100644 --- a/ccan/tdb2/lock.c +++ b/ccan/tdb2/lock.c @@ -120,7 +120,7 @@ static int fcntl_unlock(struct tdb_context *tdb, int rw, off_t off, off_t len) } /* a byte range locking function - return 0 on success - this functions locks/unlocks 1 byte at the specified offset. + this functions locks len bytes at the specified offset. note that a len of zero means lock to end of file */