summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/lockf.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/win32unix/lockf.c')
-rw-r--r--otherlibs/win32unix/lockf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/otherlibs/win32unix/lockf.c b/otherlibs/win32unix/lockf.c
index 918305281..3aa902d42 100644
--- a/otherlibs/win32unix/lockf.c
+++ b/otherlibs/win32unix/lockf.c
@@ -62,7 +62,7 @@ static void set_file_pointer(HANDLE h, LARGE_INTEGER dest,
LONG high = dest.HighPart;
DWORD ret = SetFilePointer(h, dest.LowPart, &high, method);
if (ret == INVALID_SET_FILE_POINTER) {
- long err = GetLastError();
+ DWORD err = GetLastError();
if (err != NO_ERROR) { win32_maperr(err); uerror("lockf", Nothing); }
}
if (cur != NULL) { cur->LowPart = ret; cur->HighPart = high; }