Package: xchain / 1.0.1-9

0002-xchain.c-added-braces-to-avoid-gcc-Wall-warning.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 1834d99a281d75ddb5f2afb99bc31d23b8484d3d Mon Sep 17 00:00:00 2001
From: Oohara Yuuma <oohara@debian.org>
Date: Wed, 17 Apr 2002 10:21:37 +0900
Subject: xchain.c: added braces to avoid gcc -Wall warning

---
 xchain.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/xchain.c b/xchain.c
index 9cf7889..cbe4e56 100644
--- a/xchain.c
+++ b/xchain.c
@@ -98,8 +98,11 @@ void update_board() {
     }
   for(x=1;x<=4;x++) 
     if (x<=num)
+    {
       if (numtiles[x]>-1) wprintf(".c.p.p%d.v configure -text %.2d",x,numtiles[x]);
       else wprintf(".c.p.p%d.v configure -text 00",x);
+    }
+  
 }
 
 void new_game(void) {