From 02bc92fdfa0fc8a45c785226dd4ffcf020ccbf4a Mon Sep 17 00:00:00 2001 From: shadowninja108 Date: Mon, 4 Jun 2018 00:23:58 -0700 Subject: [PATCH] Moved IGeneralService, formatting --- nx/include/switch/services/nifm.h | 4 ---- nx/source/runtime/devices/socket.c | 2 +- nx/source/services/nifm.c | 4 ++++ 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nx/include/switch/services/nifm.h b/nx/include/switch/services/nifm.h index a6dceaa8..ca5dce2b 100644 --- a/nx/include/switch/services/nifm.h +++ b/nx/include/switch/services/nifm.h @@ -12,10 +12,6 @@ #include "../services/sm.h" -typedef struct { - Service s; -} IGeneralService; - Result nifmInitialize(void); void nifmExit(void); diff --git a/nx/source/runtime/devices/socket.c b/nx/source/runtime/devices/socket.c index aba2c09e..357f7d31 100644 --- a/nx/source/runtime/devices/socket.c +++ b/nx/source/runtime/devices/socket.c @@ -1612,4 +1612,4 @@ struct servent *getservbyport(int a, const char *s) { (void)a; (void)s; h_errno struct servent *getservent(void) { h_errno = NO_RECOVERY; errno = ENOSYS; return NULL; } void sethostent(int a) { (void)a;} void setnetent(int a) { (void)a;} -void setprotoent(int a) { (void)a; } +void setprotoent(int a) { (void)a; } \ No newline at end of file diff --git a/nx/source/services/nifm.c b/nx/source/services/nifm.c index 8eed5ffc..641662d5 100644 --- a/nx/source/services/nifm.c +++ b/nx/source/services/nifm.c @@ -8,6 +8,10 @@ #include "services/nifm.h" #include "arm/atomics.h" +typedef struct { + Service s; +} IGeneralService; + static Service g_nifmSrv; static IGeneralService g_nifmIGS; static u64 g_refCnt;