mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 07:37:21 +02:00
Typo fixes
This commit is contained in:
parent
139b644d6d
commit
09e475e092
@ -163,7 +163,7 @@ static int run_basic_client_tests(void)
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Verify that gamemode is now innactive */
|
||||
/* Verify that gamemode is now inactive */
|
||||
if (verify_deactivated() != 0)
|
||||
return -1;
|
||||
|
||||
@ -246,7 +246,7 @@ static int run_dual_client_tests(void)
|
||||
usleep(100000);
|
||||
}
|
||||
|
||||
/* Verify that gamemode is now innactive */
|
||||
/* Verify that gamemode is now inactive */
|
||||
if (verify_deactivated() != 0)
|
||||
return -1;
|
||||
|
||||
@ -300,7 +300,7 @@ static int run_gamemoderun_and_reaper_tests(struct GameModeConfig *config)
|
||||
LOG_MSG("...Waiting for reaper thread (reaper_frequency set to %ld seconds)...\n", freq);
|
||||
sleep((unsigned int)freq);
|
||||
|
||||
/* Verify that gamemode is now innactive */
|
||||
/* Verify that gamemode is now inactive */
|
||||
if (verify_deactivated() != 0)
|
||||
return -1;
|
||||
|
||||
@ -574,7 +574,7 @@ static void *fake_thread_wait(void *arg)
|
||||
}
|
||||
|
||||
/* Runs a process tree in a child and tests each thread */
|
||||
static pid_t run_tests_on_process_tree(int innactive, int active, int (*func)(pid_t))
|
||||
static pid_t run_tests_on_process_tree(int inactive, int active, int (*func)(pid_t))
|
||||
{
|
||||
/* Create a fake game-like multithreaded fork */
|
||||
pid_t child = fork();
|
||||
@ -618,7 +618,7 @@ static pid_t run_tests_on_process_tree(int innactive, int active, int (*func)(pi
|
||||
|
||||
/* Test each spawned thread */
|
||||
for (unsigned int i = 0; i < numthreads; i++)
|
||||
fail |= (innactive != func(info[i].this));
|
||||
fail |= (inactive != func(info[i].this));
|
||||
if (fail) {
|
||||
LOG_ERROR("values for threads were not reset after gamemode_request_end!\n");
|
||||
exit(-1);
|
||||
@ -641,7 +641,7 @@ static pid_t run_tests_on_process_tree(int innactive, int active, int (*func)(pi
|
||||
|
||||
/* Test each spawned thread */
|
||||
for (unsigned int i = 0; i < numthreads; i++)
|
||||
fail |= (innactive != func(info[i].this));
|
||||
fail |= (inactive != func(info[i].this));
|
||||
if (fail) {
|
||||
LOG_ERROR("values for threads were not reset after gamemode_request_end!\n");
|
||||
exit(-1);
|
||||
|
@ -217,7 +217,7 @@ int main(int argc, char *argv[])
|
||||
case 1: /* active */
|
||||
LOG_ERROR("gamemode request succeeded and is active but registration failed\n");
|
||||
exit(EXIT_FAILURE);
|
||||
case 0: /* innactive */
|
||||
case 0: /* inactive */
|
||||
LOG_ERROR("gamemode request succeeded but is not active\n");
|
||||
exit(EXIT_FAILURE);
|
||||
case -1: /* error */
|
||||
|
Loading…
x
Reference in New Issue
Block a user