Skip to content

Commit edb91fb

Browse files
committed
NES: Fixed const warnings
1 parent 65d5c6f commit edb91fb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

nofrendo-go/components/nofrendo/nes/state.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void state_setslot(int slot)
7070
}
7171
}
7272

73-
int state_save(char* fn)
73+
int state_save(const char* fn)
7474
{
7575
uint8 buffer[512];
7676
uint8 numberOfBlocks = 0;
@@ -255,7 +255,7 @@ int state_save(char* fn)
255255
return -1;
256256
}
257257

258-
int state_load(char* fn)
258+
int state_load(const char* fn)
259259
{
260260
uint8 buffer[512];
261261
FILE *file;

nofrendo-go/components/nofrendo/nes/state.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ typedef struct
3232
} SnssBlockHeader;
3333

3434
extern void state_setslot(int slot);
35-
extern int state_load(char *fn);
36-
extern int state_save(char *fn);
35+
extern int state_load(const char *fn);
36+
extern int state_save(const char *fn);
3737

3838
#endif /* _NESSTATE_H_ */

0 commit comments

Comments
 (0)