ns: Use 'static ... const' with servarray.

This commit is contained in:
yellows8 2020-03-08 17:42:25 -04:00
parent afbf2c6f71
commit bf8f6ae5f5
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43

View File

@ -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");