]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: stylistic cleanup and typo fixes in syscall_dragonfly.go
authorMikio Hara <mikioh.mikioh@gmail.com>
Thu, 27 Apr 2017 09:57:10 +0000 (18:57 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Fri, 28 Apr 2017 00:03:04 +0000 (00:03 +0000)
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 <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/syscall/syscall_dragonfly.go

index 6378dbbf96b653d0672ae3fed8ec1d571f58e6ab..7d4fa4dd5c5fb33031e99d687aa9a3b302dfa213 100644 (file)
@@ -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) {