From bf8f6ae5f5a6c5e319e7e331a4eba49e4dbb447f Mon Sep 17 00:00:00 2001 From: yellows8 Date: Sun, 8 Mar 2020 17:42:25 -0400 Subject: [PATCH] ns: Use 'static ... const' with servarray. --- nx/source/services/ns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nx/source/services/ns.c b/nx/source/services/ns.c index cf55029e..c2716ecf 100644 --- a/nx/source/services/ns.c +++ b/nx/source/services/ns.c @@ -19,7 +19,7 @@ NX_GENERATE_SERVICE_GUARD(ns); Result _nsInitialize(void) { Result rc=0; - const char *servarray[5] = {"ns:ec", "ns:web", "ns:rid", "ns:rt", "ns:am2"}; // This is the order used used by official sw, however the below loop uses this in reverse since ns:am2 is last in the list. + static const char* const servarray[5] = {"ns:ec", "ns:web", "ns:rid", "ns:rt", "ns:am2"}; // This is the order used used by official sw, however the below loop uses this in reverse since ns:am2 is last in the list. if(hosversionBefore(3,0,0)) return smGetService(&g_nsAppManSrv, "ns:am");