Fix parent type in sync pipe

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
This commit is contained in:
Michael Crosby 2014-06-26 14:08:49 -07:00
parent e098c02ef7
commit bd7d1eb7b6
1 changed files with 3 additions and 3 deletions

View File

@ -17,11 +17,11 @@ type SyncPipe struct {
parent, child *os.File
}
func NewSyncPipeFromFd(parendFd, childFd uintptr) (*SyncPipe, error) {
func NewSyncPipeFromFd(parentFd, childFd uintptr) (*SyncPipe, error) {
s := &SyncPipe{}
if parendFd > 0 {
s.parent = os.NewFile(parendFd, "parendPipe")
if parentFd > 0 {
s.parent = os.NewFile(parentFd, "parentPipe")
} else if childFd > 0 {
s.child = os.NewFile(childFd, "childPipe")
} else {