mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
syscall: use uintptr for Mount flags.
R=bradfitz, rsc CC=golang-dev https://golang.org/cl/5308044
This commit is contained in:
parent
18b025d530
commit
85b9f3573e
4 changed files with 5 additions and 5 deletions
|
|
@ -89,7 +89,7 @@ func reboot(magic1 uint, magic2 uint, cmd int, arg string) (errno int) {
|
|||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func mount(source string, target string, fstype string, flags uint32, data *byte) (errno int) {
|
||||
func mount(source string, target string, fstype string, flags uintptr, data *byte) (errno int) {
|
||||
_, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(StringBytePtr(source))), uintptr(unsafe.Pointer(StringBytePtr(target))), uintptr(unsafe.Pointer(StringBytePtr(fstype))), uintptr(flags), uintptr(unsafe.Pointer(data)), 0)
|
||||
errno = int(e1)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue