From bd2ecae48512ac6b6f79f404b1190bb259ac52c8 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 17 Oct 2020 18:04:10 +0200 Subject: [PATCH] removed unnecessary braces in "return" statements --- src/network.c | 8 ++++---- src/tape.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/network.c b/src/network.c index 2905dc57..3461572d 100644 --- a/src/network.c +++ b/src/network.c @@ -161,15 +161,15 @@ char *getNetworkPlayerName(int player_nr) struct NetworkClientPlayerInfo *player; if (player_nr == 0) - return("the network game server"); + return "the network game server"; else if (player_nr == first_player.nr) - return("you"); + return "you"; else for (player = &first_player; player; player = player->next) if (player->nr == player_nr && strlen(player->name) > 0) - return(player->name); + return player->name; - return(EMPTY_PLAYER_NAME); + return EMPTY_PLAYER_NAME; } boolean hasStartedNetworkGame(void) diff --git a/src/tape.c b/src/tape.c index 9f815143..70791579 100644 --- a/src/tape.c +++ b/src/tape.c @@ -955,7 +955,7 @@ unsigned int GetTapeLengthFrames(void) int i; if (TAPE_IS_EMPTY(tape)) - return(0); + return 0; for (i = 0; i < tape.length; i++) tape_length_frames += tape.pos[i].delay; -- 2.34.1