diff options
author | Robert Griesemer <gri@golang.org> | 2009-11-09 12:07:39 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2009-11-09 12:07:39 -0800 |
commit | e940edc7a026293153ba09ece40e8092a2fc2463 (patch) | |
tree | c94a425c84b7a48f91a5d76a222effad70c9a88c /src/pkg/syscall/zsyscall_darwin_386.go | |
parent | e067f862f1774ab89a2096a88571a94e3b9cd353 (diff) | |
download | golang-e940edc7a026293153ba09ece40e8092a2fc2463.tar.gz |
remove semis after statements in one-statement statement lists
R=rsc, r
http://go/go-review/1025029
Diffstat (limited to 'src/pkg/syscall/zsyscall_darwin_386.go')
-rw-r--r-- | src/pkg/syscall/zsyscall_darwin_386.go | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/pkg/syscall/zsyscall_darwin_386.go b/src/pkg/syscall/zsyscall_darwin_386.go index ea9ce955f..20a0e4359 100644 --- a/src/pkg/syscall/zsyscall_darwin_386.go +++ b/src/pkg/syscall/zsyscall_darwin_386.go @@ -80,7 +80,7 @@ func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (errno int) { func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, errno int) { var _p0 *byte; if len(p) > 0 { - _p0 = &p[0]; + _p0 = &p[0] } r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))); n = int(r0); @@ -91,7 +91,7 @@ func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Sockl func sendto(s int, buf []byte, flags int, to uintptr, addrlen _Socklen) (errno int) { var _p0 *byte; if len(buf) > 0 { - _p0 = &buf[0]; + _p0 = &buf[0] } _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)); errno = int(e1); @@ -108,7 +108,7 @@ func kevent(kq int, change uintptr, nchange int, event uintptr, nevent int, time func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (errno int) { var _p0 *_C_int; if len(mib) > 0 { - _p0 = &mib[0]; + _p0 = &mib[0] } _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(unsafe.Pointer(_p0)), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)); errno = int(e1); @@ -258,7 +258,7 @@ func Ftruncate(fd int, length int64) (errno int) { func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, errno int) { var _p0 *byte; if len(buf) > 0 { - _p0 = &buf[0]; + _p0 = &buf[0] } r0, _, e1 := Syscall6(SYS_GETDIRENTRIES64, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0); n = int(r0); @@ -287,7 +287,7 @@ func Geteuid() (uid int) { func Getfsstat(buf []Statfs_t, flags int) (n int, errno int) { var _p0 *Statfs_t; if len(buf) > 0 { - _p0 = &buf[0]; + _p0 = &buf[0] } r0, _, e1 := Syscall(SYS_GETFSSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(flags)); n = int(r0); @@ -436,7 +436,7 @@ func Pathconf(path string, name int) (val int, errno int) { func Pread(fd int, p []byte, offset int64) (n int, errno int) { var _p0 *byte; if len(p) > 0 { - _p0 = &p[0]; + _p0 = &p[0] } r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0); n = int(r0); @@ -447,7 +447,7 @@ func Pread(fd int, p []byte, offset int64) (n int, errno int) { func Pwrite(fd int, p []byte, offset int64) (n int, errno int) { var _p0 *byte; if len(p) > 0 { - _p0 = &p[0]; + _p0 = &p[0] } r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0); n = int(r0); @@ -458,7 +458,7 @@ func Pwrite(fd int, p []byte, offset int64) (n int, errno int) { func Read(fd int, p []byte) (n int, errno int) { var _p0 *byte; if len(p) > 0 { - _p0 = &p[0]; + _p0 = &p[0] } r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p))); n = int(r0); @@ -469,7 +469,7 @@ func Read(fd int, p []byte) (n int, errno int) { func Readlink(path string, buf []byte) (n int, errno int) { var _p0 *byte; if len(buf) > 0 { - _p0 = &buf[0]; + _p0 = &buf[0] } r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf))); n = int(r0); @@ -643,7 +643,7 @@ func Unmount(path string, flags int) (errno int) { func Write(fd int, p []byte) (n int, errno int) { var _p0 *byte; if len(p) > 0 { - _p0 = &p[0]; + _p0 = &p[0] } r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p))); n = int(r0); |