mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 12:21:18 +00:00
Fix the remaining warnings in stratosphère
This commit is contained in:
parent
52114760b3
commit
cae107557d
3 changed files with 4 additions and 5 deletions
|
@ -68,7 +68,7 @@ Result ContentManagement::ResolveContentPath(char *out_path, u64 tid, FsStorageI
|
|||
}
|
||||
|
||||
if (R_SUCCEEDED(rc = lrRegLrResolveProgramPath(®, tid, path))) {
|
||||
strncpy(out_path, path, sizeof(path));
|
||||
strncpy(out_path, path, FS_MAX_PATH);
|
||||
} else if (rc != 0x408) {
|
||||
return rc;
|
||||
}
|
||||
|
@ -84,7 +84,7 @@ Result ContentManagement::ResolveContentPath(char *out_path, u64 tid, FsStorageI
|
|||
}
|
||||
|
||||
if (R_SUCCEEDED(rc = lrLrResolveProgramPath(&lr, tid, path))) {
|
||||
strncpy(out_path, path, sizeof(path));
|
||||
strncpy(out_path, path, FS_MAX_PATH);
|
||||
}
|
||||
|
||||
serviceClose(&lr.s);
|
||||
|
|
|
@ -22,7 +22,7 @@ Result LaunchQueue::add(u64 tid, const char *args, u64 arg_size) {
|
|||
}
|
||||
|
||||
Result LaunchQueue::add_copy(u64 tid_base, u64 tid) {
|
||||
unsigned int idx = get_index(tid_base);
|
||||
int idx = get_index(tid_base);
|
||||
if (idx == LAUNCH_QUEUE_FULL) {
|
||||
return 0x0;
|
||||
}
|
||||
|
|
|
@ -123,7 +123,6 @@ void ResourceLimitUtils::InitializeLimits() {
|
|||
}
|
||||
|
||||
void ResourceLimitUtils::EnsureApplicationResourcesAvailable() {
|
||||
Result rc;
|
||||
Handle application_reslimit_h = g_resource_limit_handles[1];
|
||||
for (unsigned int i = 0; i < 5; i++) {
|
||||
u64 result;
|
||||
|
@ -199,4 +198,4 @@ Result ResourceLimitUtils::BoostSystemMemoryResourceLimit(u64 boost_size) {
|
|||
g_system_boost_size = boost_size;
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue