error: make err_map_win_error_to_errno() a static function

This commit is contained in:
Bert Belder 2018-05-16 21:04:22 -07:00
parent 24dda1ef62
commit e3c63df748
No known key found for this signature in database
GPG Key ID: 7A77887B2E2ED461
2 changed files with 2 additions and 3 deletions

View File

@ -106,7 +106,7 @@
X(WSASYSNOTREADY, ENETDOWN) \
X(WSAVERNOTSUPPORTED, ENOSYS)
errno_t err_map_win_error_to_errno(DWORD error) {
static errno_t _err_map_win_error_to_errno(DWORD error) {
switch (error) {
#define X(error_sym, errno_sym) \
case error_sym: \
@ -122,7 +122,7 @@ void err_set_win_error(DWORD error) {
error = GetLastError();
else
SetLastError(error);
errno = err_map_win_error_to_errno(error);
errno = _err_map_win_error_to_errno(error);
}
int err_check_handle(HANDLE handle) {

View File

@ -12,7 +12,6 @@
#define return_error(value, ...) _return_error_helper(__VA_ARGS__ + 0, value)
WEPOLL_INTERNAL errno_t err_map_win_error_to_errno(DWORD error);
WEPOLL_INTERNAL void err_set_win_error(DWORD error);
WEPOLL_INTERNAL int err_check_handle(HANDLE handle);