mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-04 16:53:48 -04:00
strat: remove sizeof() / sizeof([0])
This commit is contained in:
parent
a5da286351
commit
c916a7db88
10 changed files with 19 additions and 18 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue