Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Frolov <k.frolov@samsung.com>2020-02-11 07:42:15 +0300
committerGitHub <noreply@github.com>2020-02-11 07:42:15 +0300
commit7fa8ea859ca7e6c7342bba52513853f687870cf8 (patch)
tree65cf191128b02dc544359d2437dfa38e067f66c8 /src/libraries/Native/Unix/System.Native/pal_networking.c
parentfe4839019d8efaab2f73c703bf58eee9fc708378 (diff)
Build failed due to -Werror option (#32040)
* fixed error processing for pipe2 call in Unix/../pal_process.c Due to -Werror warning (function result not checked) is converted to an error. Fix #32038 * fixed warnings in Unix/../pal_networking.c Due to -Werror all warnings (wrong signess, wrong types) converted to errors, so why this changes needed. Fix #32038
Diffstat (limited to 'src/libraries/Native/Unix/System.Native/pal_networking.c')
-rw-r--r--src/libraries/Native/Unix/System.Native/pal_networking.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libraries/Native/Unix/System.Native/pal_networking.c b/src/libraries/Native/Unix/System.Native/pal_networking.c
index 9b1cd7b824d..444aa1ad09a 100644
--- a/src/libraries/Native/Unix/System.Native/pal_networking.c
+++ b/src/libraries/Native/Unix/System.Native/pal_networking.c
@@ -495,7 +495,7 @@ int32_t SystemNative_GetNameInfo(const uint8_t* address,
(uint32_t)hostLength,
(char*)service,
(uint32_t)serviceLength,
- nativeFlags);
+ (int)nativeFlags);
}
else
{
@@ -508,7 +508,7 @@ int32_t SystemNative_GetNameInfo(const uint8_t* address,
(uint32_t)hostLength,
(char*)service,
(uint32_t)serviceLength,
- nativeFlags);
+ (int)nativeFlags);
}
return ConvertGetAddrInfoAndGetNameInfoErrorsToPal(result);
@@ -1489,11 +1489,7 @@ int32_t SystemNative_Bind(intptr_t socket, int32_t protocolType, uint8_t* socket
int err = bind(
fd,
(struct sockaddr*)socketAddress,
-#if BIND_ADDRLEN_UNSIGNED
(socklen_t)socketAddressLen);
-#else
- socketAddressLen);
-#endif
return err == 0 ? Error_SUCCESS : SystemNative_ConvertErrorPlatformToPal(errno);
}