Skip to content

Commit

Permalink
Merge pull request #298 from Wolf3s/Cleanups
Browse files Browse the repository at this point in the history
Fix typo and fix conversion in msvc poll.h
  • Loading branch information
sahlberg authored Dec 17, 2023
2 parents 0bb9515 + b0b6891 commit c113485
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/msvc/poll.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ extern "C" {

static inline int poll(struct pollfd pfd[], uint32_t size, int nvecs)
{
return WSAPoll(pfd, size, nvecs);
return WSAPoll(pfd, (unsigned long)size, nvecs);
}

#ifdef __cplusplus
Expand Down
2 changes: 1 addition & 1 deletion lib/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ smb2_connect_async(struct smb2_context *smb2, const char *server,
return -EAGAIN;
case EAI_NONAME:
#ifdef EAI_NODATA
#if EAI_NODATA != EAI_NONAME /* Equal in MSCV */
#if EAI_NODATA != EAI_NONAME /* Equal in MSVC */
case EAI_NODATA:
#endif
#endif
Expand Down

0 comments on commit c113485

Please sign in to comment.