From f7eb533f85d0941dbf6edb3081f065e4c010b8cc Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Mon, 8 Oct 2018 08:24:14 +0000 Subject: Vendor import apr-1.6.5 --- file_io/unix/flock.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'file_io/unix/flock.c') diff --git a/file_io/unix/flock.c b/file_io/unix/flock.c index f400a96701db8..01e8a639ba918 100644 --- a/file_io/unix/flock.c +++ b/file_io/unix/flock.c @@ -32,8 +32,8 @@ APR_DECLARE(apr_status_t) apr_file_lock(apr_file_t *thefile, int type) struct flock l = { 0 }; int fc; - l.l_whence = SEEK_SET; /* lock from current point */ - l.l_start = 0; /* begin lock at this offset */ + l.l_whence = SEEK_SET; /* count l_start from start of file */ + l.l_start = 0; /* lock from start of file */ l.l_len = 0; /* lock to end of file */ if ((type & APR_FLOCK_TYPEMASK) == APR_FLOCK_SHARED) l.l_type = F_RDLCK; @@ -90,8 +90,8 @@ APR_DECLARE(apr_status_t) apr_file_unlock(apr_file_t *thefile) { struct flock l = { 0 }; - l.l_whence = SEEK_SET; /* lock from current point */ - l.l_start = 0; /* begin lock at this offset */ + l.l_whence = SEEK_SET; /* count l_start from start of file */ + l.l_start = 0; /* lock from start of file */ l.l_len = 0; /* lock to end of file */ l.l_type = F_UNLCK; -- cgit v1.2.3