Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(621)

Side by Side Diff: src/pkg/os/sys_darwin.go

Issue 180049: code review 180049: 1) Change default gofmt default settings for (Closed)
Patch Set: code review 180049: 1) Change default gofmt default settings for Created 15 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/os/stat_nacl.go ('k') | src/pkg/os/sys_freebsd.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // Darwin-specific 5 // Darwin-specific
6 6
7 package os 7 package os
8 8
9 import "syscall" 9 import "syscall"
10 10
11 func Hostname() (name string, err Error) { 11 func Hostname() (name string, err Error) {
12 » var errno int; 12 » var errno int
13 » name, errno = syscall.Sysctl("kern.hostname"); 13 » name, errno = syscall.Sysctl("kern.hostname")
14 if errno != 0 { 14 if errno != 0 {
15 return "", NewSyscallError("sysctl kern.hostname", errno) 15 return "", NewSyscallError("sysctl kern.hostname", errno)
16 } 16 }
17 » return name, nil; 17 » return name, nil
18 } 18 }
OLDNEW
« no previous file with comments | « src/pkg/os/stat_nacl.go ('k') | src/pkg/os/sys_freebsd.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b