From 9197077df8675547dfa5e04c6dfcd024257a2030 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 17 Feb 2020 22:18:36 +0100 Subject: [PATCH] unix: gofmt after CL 218799 CL 218799 wasn't properly gofmt'ed. Also move InotifyInit before Poll so it matches the position in other syscall_linux_*.go files which implement InotifyInit using InotifyInit1 (e.g. arm64). Change-Id: If517ea2450c83ce39919992193592609f7e1e478 Reviewed-on: https://go-review.googlesource.com/c/sys/+/219798 Run-TryBot: Tobias Klauser TryBot-Result: Gobot Gobot Reviewed-by: Matt Layher --- unix/syscall_linux_mips64x.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/unix/syscall_linux_mips64x.go b/unix/syscall_linux_mips64x.go index 85a872d6..af77e6e2 100644 --- a/unix/syscall_linux_mips64x.go +++ b/unix/syscall_linux_mips64x.go @@ -216,6 +216,10 @@ func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint64(length) } +func InotifyInit() (fd int, err error) { + return InotifyInit1(0) +} + //sys poll(fds *PollFd, nfds int, timeout int) (n int, err error) func Poll(fds []PollFd, timeout int) (n int, err error) { @@ -224,8 +228,3 @@ func Poll(fds []PollFd, timeout int) (n int, err error) { } return poll(&fds[0], len(fds), timeout) } - -func InotifyInit() (fd int, err error) { - return InotifyInit1(0) -} -