diff options
| author | LC <mathew1800@gmail.com> | 2021-01-31 22:25:03 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-31 22:25:03 -0500 |
| commit | f15faab7566d7e69eedeb64e917bdd06775ecc46 (patch) | |
| tree | 1baf597e5b6f01cc35a1a472709c45745facdcfb /include | |
| parent | b595f0d0bf2bde1d0e55cc1f6cfc5df71cb07d98 (diff) | |
os: const-qualify string arguments (#111)
Avoids the need to cast away const from string literals.
Diffstat (limited to 'include')
| -rw-r--r-- | include/os/OS.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/os/OS.h b/include/os/OS.h index f0b77bfc16..52354b8278 100644 --- a/include/os/OS.h +++ b/include/os/OS.h @@ -154,13 +154,13 @@ s32 OSGetResetCode(void); u32 OSGetSoundMode(void); void OSSetSoundMode(OSSoundMode mode); -void OSAttention(char* msg, ...); -void OSPanic(char* file, s32 line, char* fmt, ...); -void OSReport(char* fmt, ...); -void OSReport_Error(char* fmt, ...); -void OSReport_FatalError(char* fmt, ...); -void OSReport_System(char* fmt, ...); -void OSReport_Warning(char* fmt, ...); +void OSAttention(const char* msg, ...); +void OSPanic(const char* file, s32 line, const char* fmt, ...); +void OSReport(const char* fmt, ...); +void OSReport_Error(const char* fmt, ...); +void OSReport_FatalError(const char* fmt, ...); +void OSReport_System(const char* fmt, ...); +void OSReport_Warning(const char* fmt, ...); void OSReportDisable(void); void OSReportEnable(void); void OSReportForceEnableOff(void); |
