Apply clang format to files

Also add brackets for all scopes at the same time
This commit is contained in:
Marc Di Luzio
2018-01-15 12:22:25 +00:00
parent ee1c51d0b0
commit 2bbaab129b
15 changed files with 378 additions and 357 deletions

View File

@ -30,19 +30,21 @@ POSSIBILITY OF SUCH DAMAGE.
*/
#include "gamemode_client.h"
#include <unistd.h>
#include <stdio.h>
#include <unistd.h>
int main(){
int main()
{
// Request we start game mode
if( gamemode_request_start() != 0 )
printf( "Failed to request gamemode start: %s...\n", gamemode_error_string() );
if (gamemode_request_start() != 0) {
printf("Failed to request gamemode start: %s...\n", gamemode_error_string());
}
// Simulate running a game
sleep( 10 );
sleep(10);
// Request we end game mode (optional)
if( gamemode_request_end() != 0 )
printf( "Failed to request gamemode end: %s...\n", gamemode_error_string() );
if (gamemode_request_end() != 0) {
printf("Failed to request gamemode end: %s...\n", gamemode_error_string());
}
}