summaryrefslogtreecommitdiffhomepage
path: root/server/sockopt_openbsd.go
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-10-12 15:06:30 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-11-01 21:56:21 +0900
commitfbc493411b3656c97cc979d086e5eecb942859c1 (patch)
tree29c8a123485091d1bb5342da0cb2d0817eb67653 /server/sockopt_openbsd.go
parent3f022e8075153a637e96ba80ee2ca537ebe6004a (diff)
Fix some spelling for spell checker's test
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'server/sockopt_openbsd.go')
-rw-r--r--server/sockopt_openbsd.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sockopt_openbsd.go b/server/sockopt_openbsd.go
index 5ce1b7ef..f52c1447 100644
--- a/server/sockopt_openbsd.go
+++ b/server/sockopt_openbsd.go
@@ -164,7 +164,7 @@ var spiOutMap map[string]uint32 = map[string]uint32{}
func pfkeyReply() (spi uint32, err error) {
buf := make([]byte, SADB_MSG_SIZE)
if count, _, _, _, _ := syscall.Recvmsg(fd, buf, nil, syscall.MSG_PEEK); count != len(buf) {
- return spi, fmt.Errorf("incomplete sadbmsg %d %d", len(buf), count)
+ return spi, fmt.Errorf("incomplete sadb msg %d %d", len(buf), count)
}
h := sadbMsg{}
h.DecodeFromBytes(buf)
@@ -182,7 +182,7 @@ func pfkeyReply() (spi uint32, err error) {
buf = make([]byte, int(8*h.sadbMsgLen))
if count, _, _, _, _ := syscall.Recvmsg(fd, buf, nil, 0); count != len(buf) {
- return spi, fmt.Errorf("incomplete sadbmsg body %d %d", len(buf), count)
+ return spi, fmt.Errorf("incomplete sadb msg body %d %d", len(buf), count)
}
buf = buf[SADB_MSG_SIZE:]