diff options
author | Andrei Karas <akaras@inbox.ru> | 2020-05-07 12:22:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2020-05-07 12:41:56 +0300 |
commit | 4bb9a1021066ef96e7b424fe7a3949cbbcfa195c (patch) | |
tree | 547859c6d825513aa984d57fc8617fb4943f60be /src/maingui.cpp | |
parent | 75b5c657a149010e075f172cc9262432399ba54c (diff) | |
download | manaverse-4bb9a1021066ef96e7b424fe7a3949cbbcfa195c.tar.gz manaverse-4bb9a1021066ef96e7b424fe7a3949cbbcfa195c.tar.bz2 manaverse-4bb9a1021066ef96e7b424fe7a3949cbbcfa195c.tar.xz manaverse-4bb9a1021066ef96e7b424fe7a3949cbbcfa195c.zip |
Fix code style after merged switch port code
Diffstat (limited to 'src/maingui.cpp')
-rw-r--r-- | src/maingui.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/maingui.cpp b/src/maingui.cpp index 8b0ddd218..05231134c 100644 --- a/src/maingui.cpp +++ b/src/maingui.cpp @@ -98,7 +98,8 @@ PRAGMA48(GCC diagnostic pop) #include "debug.h" #ifdef __SWITCH__ -extern "C" { +extern "C" +{ #include <switch/runtime/devices/socket.h> #include <switch/runtime/nxlink.h> } @@ -106,18 +107,22 @@ extern "C" { #include <unistd.h> static int sock = -1; #endif -void nxInit() { +void nxInit() +{ socketInitializeDefault(); #ifndef NDEBUG sock = nxlinkStdio(); - if (sock < 0) { + if (sock < 0) + { socketExit(); } #endif } -void NxDeinit() { +void NxDeinit() +{ #ifndef NDEBUG - if (sock >= 0) { + if (sock >= 0) + { close(sock); sock = -1; } |