[syserror] Refactor abi/linux.Errno

PiperOrigin-RevId: 373265454
This commit is contained in:
Zach Koopmans
2021-05-11 17:23:08 -07:00
committed by gVisor bot
parent f8d22292ee
commit 49eb3da98a
7 changed files with 158 additions and 170 deletions
+1 -1
View File
@@ -851,7 +851,7 @@ func getSockOptSocket(t *kernel.Task, s socket.SocketOps, ep commonEndpoint, fam
return &optP, nil
}
optP := primitive.Int32(syserr.TranslateNetstackError(err).ToLinux().Number())
optP := primitive.Int32(syserr.TranslateNetstackError(err).ToLinux())
return &optP, nil
case linux.SO_PEERCRED: