1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-07 12:26:35 +01:00

Add missing braces to if/for/while blocks.

Astyle doesn't quite catch all of them.
This commit is contained in:
iphydf
2018-07-18 15:56:21 +00:00
parent a37bf300f9
commit f2b796940e
5 changed files with 29 additions and 19 deletions

View File

@@ -261,18 +261,20 @@ void strsubst(char *str, char old, char new)
{
int i;
for (i = 0; str[i] != '\0'; ++i)
for (i = 0; str[i] != '\0'; ++i) {
if (str[i] == old) {
str[i] = new;
}
}
}
void wstrsubst(wchar_t *str, wchar_t old, wchar_t new)
{
int i;
for (i = 0; str[i] != L'\0'; ++i)
for (i = 0; str[i] != L'\0'; ++i) {
if (str[i] == old) {
str[i] = new;
}
}
}