Skip to content

Commit

Permalink
Code style fixes (#71)
Browse files Browse the repository at this point in the history
Automated fixes for code style.
  • Loading branch information
nfbot authored Mar 18, 2021
1 parent a118bd3 commit 68431b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
#include "sys_net_native.h"
#include <nanoPAL_Sockets.h>

HRESULT Library_sys_net_native_System_Net_NetworkInformation_IPGlobalProperties::GetIPAddress___STATIC__SystemNetIPAddress(CLR_RT_StackFrame &stack)
HRESULT Library_sys_net_native_System_Net_NetworkInformation_IPGlobalProperties::
GetIPAddress___STATIC__SystemNetIPAddress(CLR_RT_StackFrame &stack)
{
NANOCLR_HEADER();

Expand Down Expand Up @@ -41,7 +42,7 @@ HRESULT Library_sys_net_native_System_Net_NetworkInformation_IPGlobalProperties:

// loop through all the network interface and check if any is up
for (int interfaceIndex = 0; interfaceIndex < g_TargetConfiguration.NetworkInterfaceConfigs->Count;
interfaceIndex++)
interfaceIndex++)
{
NANOCLR_CLEAR(config);

Expand Down
10 changes: 5 additions & 5 deletions src/PAL/COM/sockets/sockets_lwip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,13 @@ HRESULT SOCK_CONFIGURATION_LoadConfiguration(HAL_Configuration_NetworkInterface
HRESULT SOCK_CONFIGURATION_LinkStatus(uint32_t interfaceIndex, bool *status)
{
NATIVE_PROFILE_PAL_COM();

return HAL_SOCK_CONFIGURATION_Link_status(interfaceIndex, status);
}
}

#define SOCKET_SHUTDOWN_READ 0
#define SOCKET_SHUTDOWN_WRITE 1
#define SOCKET_SHUTDOWN_READ_WRITE 2
#define SOCKET_SHUTDOWN_READ 0
#define SOCKET_SHUTDOWN_WRITE 1
#define SOCKET_SHUTDOWN_READ_WRITE 2

#define ISSET_SOCKET_FLAG(x, y) ((y) == ((y) & (x).m_flags))
#define SET_SOCKET_FLAG(x, y) (x).m_flags |= (y)
Expand Down

0 comments on commit 68431b7

Please sign in to comment.