From: Mikio Hara Date: Thu, 27 Apr 2017 09:57:10 +0000 (+0900) Subject: syscall: stylistic cleanup and typo fixes in syscall_dragonfly.go X-Git-Tag: go1.9beta1~423 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=cf74533b6be733e71eb499cfbb85a31de8949c55;p=gostls13.git syscall: stylistic cleanup and typo fixes in syscall_dragonfly.go Now it's not very different from syscall_dragonfly.go in golang.org/x/sys/unix repository. Change-Id: I8dfd22e1ebce9dc2cc71ab9ab7f0c92d93b2b762 Reviewed-on: https://go-review.googlesource.com/41835 Run-TryBot: Mikio Hara TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- diff --git a/src/syscall/syscall_dragonfly.go b/src/syscall/syscall_dragonfly.go index 6378dbbf96..7d4fa4dd5c 100644 --- a/src/syscall/syscall_dragonfly.go +++ b/src/syscall/syscall_dragonfly.go @@ -1,8 +1,8 @@ -// Copyright 2009,2010 The Go Authors. All rights reserved. +// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// DragonflyBSD system calls. +// DragonFly BSD system calls. // This file is compiled as ordinary Go code, // but it is also input to mksyscall, // which parses the //sys lines and generates system call stubs. @@ -65,7 +65,7 @@ func direntReclen(buf []byte) (uint64, bool) { if !ok { return 0, false } - return (16 + namlen + 1 + 7) & ^uint64(7), true + return (16 + namlen + 1 + 7) &^ 7, true } func direntNamlen(buf []byte) (uint64, bool) {