chiark / gitweb /
Move a rogue declaration to the top of its block.
authorSimon Tatham <anakin@pobox.com>
Tue, 28 Jun 2005 08:06:56 +0000 (08:06 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 28 Jun 2005 08:06:56 +0000 (08:06 +0000)
[originally from svn r6027]

net.c

diff --git a/net.c b/net.c
index 6feabdae4c31f326e306f5b5220eca94860fa4b4..3b1339a70fd6f4a19b7d43d14f657a8fb1031e7d 100644 (file)
--- a/net.c
+++ b/net.c
@@ -1981,6 +1981,7 @@ static char *interpret_move(game_state *state, game_ui *ui,
        sprintf(buf, "L%d,%d", tx, ty);
        return dupstr(buf);
     } else if (button == LEFT_BUTTON || button == RIGHT_BUTTON) {
+       char buf[80];
 
         /*
          * The left and right buttons have no effect if clicked on a
@@ -1993,7 +1994,6 @@ static char *interpret_move(game_state *state, game_ui *ui,
          * Otherwise, turn the tile one way or the other. Left button
          * turns anticlockwise; right button turns clockwise.
          */
-       char buf[80];
        sprintf(buf, "%c%d,%d", (button == LEFT_BUTTON ? 'A' : 'C'), tx, ty);
        return dupstr(buf);
     } else if (button == 'J') {