Commit 88b3aa85 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Polish.

parent ce646996
...@@ -13,14 +13,14 @@ func Socketpair(network string) (l, r *os.File, err os.Error) { ...@@ -13,14 +13,14 @@ func Socketpair(network string) (l, r *os.File, err os.Error) {
var domain int var domain int
var typ int var typ int
switch network { switch network {
default:
panic("unknown network " + network)
case "unix": case "unix":
domain = syscall.AF_UNIX domain = syscall.AF_UNIX
typ = syscall.SOCK_STREAM typ = syscall.SOCK_STREAM
case "unixgram": case "unixgram":
domain = syscall.AF_UNIX domain = syscall.AF_UNIX
typ = syscall.SOCK_SEQPACKET typ = syscall.SOCK_SEQPACKET
default:
panic("unknown network " + network)
} }
fd, errno := syscall.Socketpair(domain, typ, 0) fd, errno := syscall.Socketpair(domain, typ, 0)
if errno != 0 { if errno != 0 {
...@@ -31,7 +31,7 @@ func Socketpair(network string) (l, r *os.File, err os.Error) { ...@@ -31,7 +31,7 @@ func Socketpair(network string) (l, r *os.File, err os.Error) {
return return
} }
// Mount create a fuse fs on the specified mount point. The returned // Create a FUSE FS on the specified mount point. The returned
// mount point is always absolute. // mount point is always absolute.
func mount(mountPoint string) (f *os.File, finalMountPoint string, err os.Error) { func mount(mountPoint string) (f *os.File, finalMountPoint string, err os.Error) {
local, remote, err := Socketpair("unixgram") local, remote, err := Socketpair("unixgram")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment