From a4956fa6bfde27c21f70e8577ebb586ccc9a3691 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 4 Oct 2016 23:30:05 +0200 Subject: A few more lint fixes --- internal/syscallcompat/sys_linux.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/syscallcompat/sys_linux.go') diff --git a/internal/syscallcompat/sys_linux.go b/internal/syscallcompat/sys_linux.go index c9f6ee0..93516f3 100644 --- a/internal/syscallcompat/sys_linux.go +++ b/internal/syscallcompat/sys_linux.go @@ -8,7 +8,7 @@ import ( "github.com/rfjakob/gocryptfs/internal/tlog" ) -const FALLOC_FL_KEEP_SIZE = 0x01 +const _FALLOC_FL_KEEP_SIZE = 0x01 var preallocWarn sync.Once @@ -17,7 +17,7 @@ var preallocWarn sync.Once // ciphertext block (that would corrupt the block). func EnospcPrealloc(fd int, off int64, len int64) (err error) { for { - err = syscall.Fallocate(fd, FALLOC_FL_KEEP_SIZE, off, len) + err = syscall.Fallocate(fd, _FALLOC_FL_KEEP_SIZE, off, len) if err == syscall.EINTR { // fallocate, like many syscalls, can return EINTR. This is not an // error and just signifies that the operation was interrupted by a -- cgit v1.2.3