Skip to content

Commit 6cf014f

Browse files
committed
Remove leftover syscall usage
1 parent 8727e98 commit 6cf014f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mmap_unix.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
package maxminddb
44

55
import (
6-
"syscall"
7-
86
"golang.org/x/sys/unix"
97
)
108

119
func mmap(fd int, length int) (data []byte, err error) {
12-
return unix.Mmap(fd, 0, length, syscall.PROT_READ, syscall.MAP_SHARED)
10+
return unix.Mmap(fd, 0, length, unix.PROT_READ, unix.MAP_SHARED)
1311
}
1412

1513
func munmap(b []byte) (err error) {

0 commit comments

Comments
 (0)