removed unnecessary braces in "return" statements
authorHolger Schemel <info@artsoft.org>
Sat, 17 Oct 2020 16:04:10 +0000 (18:04 +0200)
committerHolger Schemel <info@artsoft.org>
Sun, 13 Dec 2020 23:57:56 +0000 (00:57 +0100)
src/network.c
src/tape.c

index 2905dc5737c6f0d94e33f22740162acbf38e4fff..3461572db959ac07151f383e1fc28c38f4703cac 100644 (file)
@@ -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)
index 9f815143eddb3c67a6430f6f603d6db9a35e0ad6..70791579eac89cadd48d15bdb70d83a4d3176a3f 100644 (file)
@@ -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;