Fix typos

Found by:
https://goreportcard.com/report/github.com/opencontainers/runc#misspell

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
Qiang Huang 2017-01-06 10:54:33 +08:00
parent 1a9dd2678d
commit 20f0ca7306
2 changed files with 3 additions and 3 deletions

View File

@ -201,7 +201,7 @@ func setupConsole(pipe *os.File, config *initConfig, mount bool) error {
return err
}
// Make sure the other side recieved the fd.
// Make sure the other side received the fd.
if err := readSync(pipe, procConsoleAck); err != nil {
return err
}

View File

@ -32,7 +32,7 @@ import (
// RecvFd waits for a file descriptor to be sent over the given AF_UNIX
// socket. The file name of the remote file descriptor will be recreated
// locally (it is sent as non-auxilliary data in the same payload).
// locally (it is sent as non-auxiliary data in the same payload).
func RecvFd(socket *os.File) (*os.File, error) {
file, err := C.recvfd(C.int(socket.Fd()))
if err != nil {
@ -44,7 +44,7 @@ func RecvFd(socket *os.File) (*os.File, error) {
// SendFd sends a file descriptor over the given AF_UNIX socket. In
// addition, the file.Name() of the given file will also be sent as
// non-auxilliary data in the same payload (allowing to send contextual
// non-auxiliary data in the same payload (allowing to send contextual
// information for a file descriptor).
func SendFd(socket, file *os.File) error {
var cfile C.struct_file_t