Skip to content

Commit

Permalink
Use smaller constants for unknown errors
Browse files Browse the repository at this point in the history
Resolves #123.
  • Loading branch information
aantron committed Aug 1, 2021
1 parent ac73678 commit 62e0ebc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/c/shims.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
#if UV_VERSION_MAJOR == 1 && UV_VERSION_MINOR < 10
static int uv_translate_sys_error(int sys_error)
{
return 0x34242424;
return 0x3242424;
}
#endif

Expand Down Expand Up @@ -136,7 +136,7 @@
#endif

#if UV_VERSION_MAJOR == 1 && UV_VERSION_MINOR < 16
#define UV_ENOTTY 0x24242424
#define UV_ENOTTY 0x2242424

// UV_FS_O_* flag definitions directly taken from uv/unix.h and uv/win.h as
// of libuv 1.41.0.
Expand Down Expand Up @@ -370,7 +370,7 @@
#endif

#if UV_VERSION_MAJOR == 1 && UV_VERSION_MINOR < 21
#define UV_EFTYPE 0x14242424
#define UV_EFTYPE 0x1242424
#define UV_OVERLAPPED_PIPE 0

static int uv_fs_lchown(
Expand Down Expand Up @@ -534,7 +534,7 @@
#endif

#if UV_VERSION_MAJOR == 1 && UV_VERSION_MINOR < 32
#define UV_EILSEQ 0x04242424
#define UV_EILSEQ 0x0242424

static int uv_tcp_close_reset(uv_tcp_t *handle, uv_close_cb close_callback)
{
Expand Down Expand Up @@ -645,8 +645,8 @@
#endif

#if UV_VERSION_MAJOR == 1 && UV_VERSION_MINOR < 42
#define UV_EOVERFLOW 0x34242424
#define UV_ESOCKTNOSUPPORT 0x44242424
#define UV_EOVERFLOW 0x4242424
#define UV_ESOCKTNOSUPPORT 0x5242424

static int uv_try_write2(
uv_stream_t *stream, const uv_buf_t *bufs, unsigned int nbufs,
Expand Down

0 comments on commit 62e0ebc

Please sign in to comment.