From 09e475e0927c922397a54298ccfeba80d1234051 Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Sun, 19 May 2019 11:05:41 +0100 Subject: [PATCH] Typo fixes --- daemon/gamemode-tests.c | 12 ++++++------ daemon/main.c | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/daemon/gamemode-tests.c b/daemon/gamemode-tests.c index 086acc6..eefc941 100644 --- a/daemon/gamemode-tests.c +++ b/daemon/gamemode-tests.c @@ -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); diff --git a/daemon/main.c b/daemon/main.c index f0910e3..875f65d 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -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 */