This commit is contained in:
onyx-and-iris 2024-07-25 17:34:38 +01:00
parent 7c46f30e62
commit a719af8265
3 changed files with 4 additions and 4 deletions

View File

@ -118,7 +118,7 @@ void log_set_quiet(bool enable)
int log_add_callback(log_LogFn fn, void *udata, int level)
{
for (int i = 0; i < MAX_CALLBACKS; i++)
for (int i = 0; i < MAX_CALLBACKS; ++i)
{
if (!L.callbacks[i].fn)
{
@ -163,7 +163,7 @@ void log_log(int level, const char *file, int line, const char *fmt, ...)
va_end(ev.ap);
}
for (int i = 0; i < MAX_CALLBACKS && L.callbacks[i].fn; i++)
for (int i = 0; i < MAX_CALLBACKS && L.callbacks[i].fn; ++i)
{
Callback *cb = &L.callbacks[i];
if (level >= cb->level)

View File

@ -92,7 +92,7 @@ bool is_comment(char *s)
*/
struct quickcommand *command_in_quickcommands(const char *command_key, const struct quickcommand *quickcommands, int n)
{
for (int i = 0; i < n; i++)
for (int i = 0; i < n; ++i)
{
if (strcmp(command_key, quickcommands[i].name) == 0)
{

View File

@ -191,7 +191,7 @@ int main(int argc, char *argv[])
}
else
{
for (int i = optind; i < argc; i++)
for (int i = optind; i < argc; ++i)
{
parse_input(vmr, argv[i]);
}