strat: remove sizeof() / sizeof([0])

This commit is contained in:
Michael Scire 2019-07-02 14:36:57 -07:00 committed by SciresM
parent a5da286351
commit c916a7db88
10 changed files with 19 additions and 18 deletions

View file

@ -84,7 +84,7 @@ void Utils::InitializeThreadFunc(void *args) {
DoWithSmSession([&]() {
Handle tmp_hnd = 0;
static const char * const required_active_services[] = {"pcv", "gpio", "pinmux", "psc:c"};
for (unsigned int i = 0; i < sizeof(required_active_services) / sizeof(required_active_services[0]); i++) {
for (unsigned int i = 0; i < sts::util::size(required_active_services); i++) {
R_ASSERT(smGetServiceOriginal(&tmp_hnd, smEncodeName(required_active_services[i])));
svcCloseHandle(tmp_hnd);
}