summaryrefslogtreecommitdiff
path: root/games/velena/patches/patch-evaluate_c
blob: 86710898f6cde3a8d4c1789e814c59cb18c7efdb (plain)
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
26
27
28
29
30
31
32
33
34
$NetBSD: patch-evaluate_c,v 1.1 2011/05/28 22:41:43 dholland Exp $

- Use matching argument types with printf and scanf.

--- evaluate.c.orig	1997-07-27 21:15:12.000000000 +0000
+++ evaluate.c
@@ -73,7 +73,8 @@ void show_square_used(struct board *boar
 
 void test_conditions(char **matrix,struct board *board)
 	{
-	short x,y,z,n1,n2,x1,y1;
+	int x,y;
+	short z,n1,n2,x1,y1;
 
 	printf("Enter rule 1 number : ");
 	scanf("%d %d",&x,&y);
@@ -137,7 +138,7 @@ void test_conditions(char **matrix,struc
 		}
 	else
 		{
-		printf("Rules %d,%d don't exist!\n\r\n\r");
+		printf("Rules %d,%d don't exist!\n\r\n\r", x, y);
 		}
 
 	}
@@ -1655,7 +1656,7 @@ void debug_white(struct board *board)
 			}
 		else
 			{
-			printf("Pentas found.\n\r",pentas);
+			printf("Pentas found.\n\r");
 			}