summaryrefslogtreecommitdiff
path: root/games/netmaj/patches/patch-an
blob: 515cfd951efa9e623449c6b881b1f7bc69cac2a7 (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
$NetBSD: patch-an,v 1.2 2013/02/26 10:29:34 joerg Exp $

Fix obvious bug detected by gcc.

--- pf.c.orig	1996-07-31 08:06:10.000000000 +0000
+++ pf.c
@@ -66,7 +66,7 @@ typedef struct  {
 #define yakus		(((pf_global_t *)(gp->ext[0]))->_yakus)
 #define pf_top		(((pf_global_t *)(gp->ext[0]))->_pf_top)
 
-pf_init(gp,file,prog) global_t *gp; char *file; char *prog; {
+void pf_init(global_t *gp, char *file, char *prog) {
 	FILE *pf;		/* personal file */
 	char buf[100];
 	char buf2[100];
@@ -94,7 +94,7 @@ pf_init(gp,file,prog) global_t *gp; char
 	}
 	if (!pf) {
 		strcpy(personal_file,prog);
-		if (p=rindex(personal_file,"/")) {
+		if (p=rindex(personal_file,'/')) {
 			p[1] = 0;
 		} else {
 			personal_file[0] = 0;