Skip to content

Commit

Permalink
windows/mkwinsyscall: remove errnoERROR_IO_PENDING const
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Oct 9, 2022
1 parent 84dc82d commit 12b1d1c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
8 changes: 2 additions & 6 deletions windows/mkwinsyscall/mkwinsyscall.go
Original file line number Diff line number Diff line change
Expand Up @@ -904,12 +904,8 @@ var _ unsafe.Pointer
// Do the interface allocations only once for common
// Errno values.
const (
errnoERROR_IO_PENDING = 997
)
var (
errERROR_IO_PENDING error = {{syscalldot}}Errno(errnoERROR_IO_PENDING)
errERROR_IO_PENDING error = {{windowsdot}}ERROR_IO_PENDING
errERROR_EINVAL error = {{syscalldot}}EINVAL
)
Expand All @@ -919,7 +915,7 @@ func errnoErr(e {{syscalldot}}Errno) error {
switch e {
case 0:
return errERROR_EINVAL
case errnoERROR_IO_PENDING:
case {{windowsdot}}ERROR_IO_PENDING:
return errERROR_IO_PENDING
}
// TODO: add more here, after collecting data on the common
Expand Down
8 changes: 2 additions & 6 deletions windows/registry/zsyscall_windows.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions windows/zsyscall_windows.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 12b1d1c

Please sign in to comment.