mirror of https://github.com/mgba-emu/mgba.git
GBA Config: const-correctness
This commit is contained in:
parent
50d76d9528
commit
0fd9e9ad0f
|
@ -102,7 +102,7 @@ bool ConfigurationWrite(const struct Configuration* configuration, const char* p
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ConfigurationWriteSection(const struct Configuration* configuration, const char* path, const char* section) {
|
bool ConfigurationWriteSection(const struct Configuration* configuration, const char* path, const char* section) {
|
||||||
struct Table* currentSection = &configuration->root;
|
const struct Table* currentSection = &configuration->root;
|
||||||
int fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0666);
|
int fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0666);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue