AGS: gcc warning fix

This commit is contained in:
Paul Gilbert 2021-07-11 20:18:45 -07:00
parent 0cf9a86286
commit 9c909afd10
3 changed files with 3 additions and 3 deletions

View File

@ -212,7 +212,7 @@ int StrContains(const char *s1, const char *s2) {
ustrlwr(tempbuf1);
ustrlwr(tempbuf2);
char *offs = ustrstr(tempbuf1, tempbuf2);
char *offs = const_cast<char *>(ustrstr(tempbuf1, tempbuf2));
if (offs == nullptr) {
free(tempbuf1);

View File

@ -1169,7 +1169,7 @@ char *ustrupr(char *s) {
return s;
}
char *ustrstr(const char *s1, const char *s2) {
const char *ustrstr(const char *s1, const char *s2) {
int len;
assert(s1);
assert(s2);

View File

@ -112,7 +112,7 @@ extern char *ustrupr(char *s);
/* ustrstr:
* Unicode-aware version of the ANSI strstr() function.
*/
extern char *ustrstr(const char *s1, const char *s2);
extern const char *ustrstr(const char *s1, const char *s2);
/* usetat:
* Modifies the character at the specified index within the string,
* handling adjustments for variable width data. Returns how far the