diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bitcoinrpc.cpp | 10 | ||||
-rw-r--r-- | src/init.cpp | 3 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index a766c4469a..df3c190b38 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -116,11 +116,11 @@ HexBits(unsigned int nBits) } enum DecomposeMode { - DM_NONE = 0, - DM_HASH, - DM_HEX, - DM_ASM, - DM_OBJ, + DM_NONE = 0, + DM_HASH, + DM_HEX, + DM_ASM, + DM_OBJ, }; enum DecomposeMode diff --git a/src/init.cpp b/src/init.cpp index 877b1d471f..fe07ed7275 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -614,7 +614,8 @@ bool AppInit2(int argc, char* argv[]) fBound |= Bind(CService(strBind, GetDefaultPort(), false)); } } else { - struct in_addr inaddr_any = {s_addr: INADDR_ANY}; + struct in_addr inaddr_any; + inaddr_any.s_addr = INADDR_ANY; fBound |= Bind(CService(inaddr_any, GetDefaultPort())); #ifdef USE_IPV6 fBound |= Bind(CService(in6addr_any, GetDefaultPort())); |