Correct the names and return 0 for success

This commit is contained in:
Marc Di Luzio 2019-02-10 12:28:24 +00:00
parent 602afdcbb7
commit b28efdb555
2 changed files with 4 additions and 4 deletions

View File

@ -429,7 +429,7 @@ int game_mode_context_register(GameModeContext *self, pid_t client, pid_t reques
/* Apply io priorities */
game_mode_apply_ioprio(self, client);
return true;
return 0;
error_cleanup:
if (errno != 0)
@ -511,7 +511,7 @@ int game_mode_context_unregister(GameModeContext *self, pid_t client, pid_t requ
game_mode_context_leave(self);
}
return true;
return 0;
}
int game_mode_context_query_status(GameModeContext *self, pid_t client, pid_t requester)

View File

@ -114,13 +114,13 @@ extern int real_gamemode_query_status(void)
}
// Wrapper to call RegisterGameByPID
extern int real_gamemode_register_start_for(pid_t pid)
extern int real_gamemode_request_start_for(pid_t pid)
{
return gamemode_request("RegisterGameByPID", pid);
}
// Wrapper to call UnregisterGameByPID
extern int real_gamemode_register_end_for(pid_t pid)
extern int real_gamemode_request_end_for(pid_t pid)
{
return gamemode_request("UnregisterGameByPID", pid);
}