From: Holger Schemel Date: Sat, 17 Oct 2020 16:04:10 +0000 (+0200) Subject: removed unnecessary braces in "return" statements X-Git-Tag: 4.2.1.0~52 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=bd2ecae48512ac6b6f79f404b1190bb259ac52c8;p=rocksndiamonds.git removed unnecessary braces in "return" statements --- 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;